-
Notifications
You must be signed in to change notification settings - Fork 8
/
config.py
76 lines (60 loc) · 3.72 KB
/
config.py
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
import os
THIS_FILE_DIR = os.path.dirname(os.path.realpath(__file__))
# The cleartool command full path
CLEARTOOL = "/usr/atria/bin/cleartool"
# The root directory for conversion
# The tool will launch ct lshi -rec there and will convert all files found below this directory
CC_VOB_DIR = "/vobs/MY_VOB_DIR/path/to/root"
# The tool uses cache directory to place ClearCase version files there. The cache speeds up the transfer process
# in many times in subsequent attempts (up to 10 times). It may be recommended to start the tool 2 days before the
# actual transfer loading all files to the cache. So only new versions appeared during the 2 days will be retrieved from
# ClearCase in the day of the transfer.
# NOTE: Make sure there is enough space in cache directory.
CACHE_DIR = "/var/tmp/cc2svn_cache"
# The tool can not track the history of ClearCase symbolic links
# This is a workaround for this. When the tool finds the symlink record in CC history
# it creates the link in the given branch. If the branch does not exist at the time
# the link was created, the tool skips the link.
PUT_CCLINKS_TO_BRANCH = "main"
# The tool may add some svn properties to the files depending on the file extension
# config.autoprops contains the basic mapping for extension -> svn properties
# You can add or change your mapping there
# The syntax is: shell-pattern = svnproperty=value;svnproperty=value;...
# the space between shell-pattern and equal sign '=' is mandatory
SVN_AUTOPROPS_FILE = THIS_FILE_DIR + "/config.autoprops"
# If CC_LABELS_FILE is not defined, the tool will convert all labels it finds in history of the current view
# If CC_LABELS_FILE is defined (recommended), the tool will transfer only those labels mentioned in file
# If you do not want to transfer any labels, specify an empty file
# file must contain one label per line, example:
# LABEL_1
# LABEL_2
CC_LABELS_FILE = THIS_FILE_DIR + "/labels.txt"
# If CC_BRANCHES_FILE is not defined, the tool will convert all branches it finds in history of the current view
# If CC_BRANCHES_FILE is defined, the tool will transfer only those branches mentioned in file
# If you do not want to transfer any branches, specify an empty file
# file must contain one branch name per line (without slashes), example:
# main
# user_dev
CC_BRANCHES_FILE = THIS_FILE_DIR + "/branches.txt"
# If CC_IGNORED_DIRECTORIES_FILE is not defined, the tool will not import history of files
# from ignored directories
CC_IGNORED_DIRECTORIES_FILE = THIS_FILE_DIR + "/ignoredDirectories.txt"
# If the tool finds the size of the file in cache is zero, it may try loading the file from ClearCase again.
# This is to make sure zero size is not due to previous unsuccessful retrieving attempt.
CHECK_ZEROSIZE_CACHEFILE = True
# Should svndump contain the command to create SVN /branches and /tags directory or not
# It will be an error if you try loading the dump with such command to SVN repository containing these directories
SVN_CREATE_BRANCHES_TAGS_DIRS = False
# SVN dump output file created by the tool
SVN_DUMP_FILE = "svndump.txt"
# ClearCase history file created by the tool
HISTORY_FILE = "cchistory.txt"
# DUMP_SINCE_DATE activates incremental dump mode. This should be used after the full dump mode only.
# The idea is: you convert cc2svn on the day X without using this option, working in svn and ClearCase simultaneously
# (do not commit the same changes in svn and CC), then create incremental dump using DUMP_SINCE_DATE=X option.
# Dump will include revisions with date > DUMP_SINCE_DATE (strict greater) only.
# Note: SVN_CREATE_BRANCHES_TAGS_DIRS is ignored in incremental mode
# Date format is YYYYMMDD.hhmmss (the same as CC is using).
#DUMP_SINCE_DATE = "20010921.175059"
# Encoding of the history file
ENCODING = "Windows-1252"