File: cvs2svn-rename.options

package info (click to toggle)
cvs2svn 2.4.0-4
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 3,720 kB
  • sloc: python: 22,383; sh: 512; perl: 121; makefile: 84
file content (34 lines) | stat: -rw-r--r-- 847 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# (Be in -*- python -*- mode.)

# Fix a problem with multiply-defined symbols by renaming one copy of
# each symbol.

from cvs2svn_lib.symbol_transform import SymbolMapper

execfile('cvs2svn-example.options')

name = 'multiply-defined-symbols'

ctx.output_option = NewRepositoryOutputOption(
    'cvs2svn-tmp/%s--options=cvs2svn-rename.options-svnrepos' % (name,),
    )

run_options.clear_projects()

filename = 'test-data/%s-cvsrepos/proj/default,v' % (name,)
symbol_mapper = SymbolMapper([
    (filename, 'BRANCH', '1.2.4', 'BRANCH2'),
    (filename, 'TAG', '1.2', 'TAG2'),
    ])

run_options.add_project(
    r'test-data/%s-cvsrepos' % (name,),
    trunk_path='trunk',
    branches_path='branches',
    tags_path='tags',
    symbol_transforms=[
        symbol_mapper,
        ],
    symbol_strategy_rules=global_symbol_strategy_rules,
    )