gwynne          Sun Oct 19 19:30:38 2008 UTC

  Added files:                 
    /SVNROOT    checkout.sh phpsvn.options 
  Log:
  cvs2svn options file and checkout test script
  

http://cvs.php.net/viewvc.cgi/SVNROOT/checkout.sh?view=markup&rev=1.1
Index: SVNROOT/checkout.sh
+++ SVNROOT/checkout.sh
#!/bin/bash

dirs=`ls /home/repository`

for dir in $dirs; do
        echo "Processing ${dir}..." 
        if [ -d "/home/repository/${dir}" ]; then
                svn co file:///home/repository-svn/"${dir}" >> ./checkout.log 
2>&1
                if [ "$?" -eq 0 ]; then
                        echo "Successful on ${dir}." >> ./checkout.results
                else
                        echo "FAILED ON ${dir}!" >> ./checkout.results
                fi
                rm -Rf ./"${dir}"
        fi
done


http://cvs.php.net/viewvc.cgi/SVNROOT/phpsvn.options?view=markup&rev=1.1
Index: SVNROOT/phpsvn.options
+++ SVNROOT/phpsvn.options
# (Be in -*- python -*- mode.)
import re
import os

from cvs2svn_lib.boolean import *
from cvs2svn_lib import config
from cvs2svn_lib import changeset_database
from cvs2svn_lib.common import CVSTextDecoder
from cvs2svn_lib.log import Log
from cvs2svn_lib.project import Project
from cvs2svn_lib.svn_output_option import DumpfileOutputOption
from cvs2svn_lib.svn_output_option import ExistingRepositoryOutputOption
from cvs2svn_lib.svn_output_option import NewRepositoryOutputOption
from cvs2svn_lib.revision_manager import NullRevisionRecorder
from cvs2svn_lib.revision_manager import NullRevisionExcluder
from cvs2svn_lib.rcs_revision_manager import RCSRevisionReader
from cvs2svn_lib.cvs_revision_manager import CVSRevisionReader
from cvs2svn_lib.checkout_internal import InternalRevisionRecorder
from cvs2svn_lib.checkout_internal import InternalRevisionExcluder
from cvs2svn_lib.checkout_internal import InternalRevisionReader
from cvs2svn_lib.symbol_strategy import AllBranchRule
from cvs2svn_lib.symbol_strategy import AllTagRule
from cvs2svn_lib.symbol_strategy import BranchIfCommitsRule
from cvs2svn_lib.symbol_strategy import ExcludeRegexpStrategyRule
from cvs2svn_lib.symbol_strategy import ForceBranchRegexpStrategyRule
from cvs2svn_lib.symbol_strategy import ForceTagRegexpStrategyRule
from cvs2svn_lib.symbol_strategy import HeuristicStrategyRule
from cvs2svn_lib.symbol_strategy import UnambiguousUsageRule
from cvs2svn_lib.symbol_strategy import DefaultBasePathRule
from cvs2svn_lib.symbol_strategy import HeuristicPreferredParentRule
from cvs2svn_lib.symbol_strategy import SymbolHintsFileRule
from cvs2svn_lib.symbol_transform import ReplaceSubstringsSymbolTransform
from cvs2svn_lib.symbol_transform import RegexpSymbolTransform
from cvs2svn_lib.symbol_transform import NormalizePathsSymbolTransform
from cvs2svn_lib.property_setters import AutoPropsPropertySetter
from cvs2svn_lib.property_setters import CVSBinaryFileDefaultMimeTypeSetter
from cvs2svn_lib.property_setters import CVSBinaryFileEOLStyleSetter
from cvs2svn_lib.property_setters import CVSRevisionNumberSetter
from cvs2svn_lib.property_setters import DefaultEOLStyleSetter
from cvs2svn_lib.property_setters import EOLStyleFromMimeTypeSetter
from cvs2svn_lib.property_setters import ExecutablePropertySetter
from cvs2svn_lib.property_setters import KeywordsPropertySetter
from cvs2svn_lib.property_setters import MimeMapper
from cvs2svn_lib.property_setters import SVNBinaryFileKeywordsPropertySetter

Log().log_level = Log.VERBOSE
ctx.output_option = ExistingRepositoryOutputOption(
    r'/home/repository-svn',
    )
#ctx.output_option = DumpfileOutputOption(
#    dumpfile_path=r'/home/gwynne/phpsvn.dumpfile',
#    )
ctx.dry_run = False
ctx.revision_recorder = InternalRevisionRecorder(compress=True)
ctx.revision_excluder = InternalRevisionExcluder()
ctx.revision_reader = InternalRevisionReader(compress=True)
ctx.svnadmin_executable = r'svnadmin'
ctx.sort_executable = r'sort'
ctx.trunk_only = False
ctx.prune = True
ctx.cvs_author_decoder = CVSTextDecoder(
    [
        'latin1',
        'utf8',
        'ascii',
        ],
    #fallback_encoding='ascii'
    )
ctx.cvs_log_decoder = CVSTextDecoder(
    [
        'latin1',
        'utf8',
        'ascii',
        ],
    #fallback_encoding='ascii'
    )
ctx.cvs_filename_decoder = CVSTextDecoder(
    [
        'latin1',
        'utf8',
        'ascii',
        ],
    #fallback_encoding='ascii'
    )
ctx.decode_apple_single = False
ctx.symbol_info_filename = '/home/gwynne/phpsvn.syminfo.txt'
global_symbol_strategy_rules = [
    ExcludeRegexpStrategyRule(r'php4/CREDITS'),
    UnambiguousUsageRule(),
    BranchIfCommitsRule(),
    HeuristicStrategyRule(),
    DefaultBasePathRule(),
    HeuristicPreferredParentRule(),
    ]
ctx.username = 'cvs2svn'
ctx.svn_property_setters.extend([
    CVSBinaryFileEOLStyleSetter(),
    CVSBinaryFileDefaultMimeTypeSetter(),
    EOLStyleFromMimeTypeSetter(),
    DefaultEOLStyleSetter('native'),
    SVNBinaryFileKeywordsPropertySetter(),
    KeywordsPropertySetter(config.SVN_KEYWORDS_VALUE),
    ExecutablePropertySetter(),
    CVSRevisionNumberSetter(),
    ])
ctx.tmpdir = r'/home/gwynne/cvs2svn-tmp'
ctx.cross_project_commits = False
ctx.cross_branch_commits = False
ctx.retain_conflicting_attic_files = True
run_options.profiling = False
changeset_database.use_mmap_for_cvs_item_to_changeset_table = False

def recurse_dir(rootdir, modprefix, exceptions, deepens, run_options, xforms, 
rules):
    global os, recurse_dir
    fnames = os.listdir(rootdir)
    for fname in fnames:
        pathname = os.path.join(rootdir, fname)
        if os.path.isdir(pathname) and fname not in exceptions and fname not in 
deepens:
            run_options.add_project(
                pathname,
                trunk_path=modprefix + fname + '/trunk',
                branches_path=modprefix + fname + '/branches',
                tags_path=modprefix + fname + '/tags',
                symbol_transforms=xforms,
                symbol_strategy_rules=[] + rules,
                )
        elif os.path.isdir(pathname) and fname in deepens:
            recurse_dir(os.path.join(rootdir, fname), fname + '/', [], [], 
run_options, xforms, rules)

recurse_dir(r'/home/gwynne/repository-cvs', '', ['CVSROOT', 'livingtags', 
'pear-manual', 'phpdoc-ar-only', 'phpdoc-he-only', 'phpdoc-ro-dir', 
'phpdoc-ro-only'], ['pear', 'pecl'], run_options,
    [ReplaceSubstringsSymbolTransform('\\','/'), 
NormalizePathsSymbolTransform()], global_symbol_strategy_rules)



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to