# PVCS to Perforce Converter Configuration File. # # Keywords in this file must start at the left column and end with a colon. # Values must be on the same line as the keyword or on subsequent lines # starting with a tab. # root of tree of archives to be converted # root: \\server\vmarchives\archives root: p:/VM/V3 # Projects underneath root. # More than one allowed if seperated by "|", e.g. (Note no spaces after "|") # projects: /proj1|/proj2 projects: /project # Perforce Environment settings p4port: 1666 p4user: robert p4client: pvcs # PVCS login info - required for PCLI usage pvcs_user: robert pvcs_passwd: pwd # Depot to import into e.g. //ourdepot specified as # depot: ourdepot depot: depot # Depot root to use (defaults to main) # depot_root: import/proj with depot: ourdepot => //ourdepot/import/proj/... depot_root: import/pvcs # Files or folders to be excluded (comment out if not used) # Multiple files or folders can be excluded if seperated by '|'. # Notes: # - pattern matching is used at the start of the string, so "/Proj1/folder1/" will match # anything from that folder downwards. # - "/Proj1/folder" will match "/Proj1/folder1" and "/Proj1/folder2" etc (so be careful!!) # - special reg exp characters are turned off in the match string (quotemeta is used) so don't use * # etc and expect it to work. # exclude: /Proj1/Some folder/|/Proj2/some other folder/file # name to give directory in Perforce holding PVCS trunk revisions trunk_dir: main # whether to ignore branches in PVCS (treat all revisions as if they are # "on the trunk") - you may want to set this to "yes" if most branches # in PVCS are not labelled and/or you don't want to keep this information ignore_branches: yes # element of depot filename to put branch name. Must be either 0, 1 or 2 # If 0: pvcs_root/foo/bar rev 1.0 -> //depot/foo/bar # pvcs_root/foo/bar rev 1.0.1.0 labelled X -> //depot/foo/bar # pvcs_root/foo/bar rev 1.0.2.0 unlabelled -> //depot/foo/bar # If 1: pvcs_root/foo/bar rev 1.0 -> //depot/T/foo/bar # pvcs_root/foo/bar rev 1.0.1.0 labelled X -> //depot/X/foo/bar # pvcs_root/foo/bar rev 1.0.2.0 unlabelled -> //depot/Y/foo/bar # If 2: pvcs_root/foo/bar rev 1.0 -> //depot/foo/T/bar # pvcs_root/foo/bar rev 1.0.1.0 labelled X -> //depot/foo/X/bar # pvcs_root/foo/bar rev 1.0.2.0 unlabelled -> //depot/foo/Y/bar # where T is the value of "trunk_dir" (set above) # X is the PVCS floating label # and Y is the value of "branch_prefix" (set below) plus a unique integer # # Note that if "ignore_branches" is set to yes then the above table should # be changed to show T in place of X and Y (i.e. everything is on the trunk) # If "ignore_branches" is set to no then branch_level 0 is not allowed. # # The default is 1. # branch_level 2 may be useful if you have a number of projects which are # independently released. In this case you should not have any archive files # in your pvcs root directory; there should only be directories # branch_level 0 is in general not recommended since you should have some # directory component indicating branching branch_level: 0 # prefix of name to give to unlabeled branches # (not relevant if branch_level set to 0) branch_prefix: dead # time interval (in seconds) between two checkins which can be considered # part of the same change time_interval: 600 # - whether to convert all filenames to lowercase. The default is no. lowercase_filenames: no # - whether to convert all paths (excluding filename) to lowercase. Note # that branch names are not lowercased. The default is no. lowercase_pathnames: no # - whether to convert all branch names to lowercase. The default is no. lowercase_branchnames: no # - whether to convert all user names to lowercase. The default is no. lowercase_usernames: no # Whether to convert all extensions to lowercase lowercase_extensions: yes # - whether to list all files in the tree rooted at pvcs_root, regardless # of whether the filename ends in .??v (where ? is a one character wildcard). # You only want to set this to yes if you have archives with filenames # that do not end in .??v (although it doesn't hurt setting it to yes if your # archive directories are clean and only contain archives!). The default is no. list_all_files: no # - regular expression specifying labels which indicate a (branch of a) file # is to be deleted. The regex is case sensitive. Recall that regex's in Perl # (and grep and awk..) are different than filename wildcards. # If you're not sure about this or you don't have a consistent way of # marking branches as being deleted, just leave the line commented out. #delete_label_regex: DELETE.* # Prefix to prepend to labels - makes importing nicer and avoids name conflicts label_prefix: pvcs_ # - debugging level - set to zero to speed things up, > 0 to track down # problems debug_level: 1 # - regular expression specifying which files are archive files. # As above, remember that regex's in Perl are different than filename wildcards. # By default the converter grabs all files ending in ".??v", where ? can be any # character except ".", and "v" can be either upper or lower case. arc_file_regex: -arc$ # - filename "extensions" which signify various file types - these overrule # the default determination of file type based on the PVCS GenerateDelta # and ExpandKeywords attributes in the archive file. The file extensions # are taken to be case insensitive. # THESE ARE JUST SENSIBLE DEFAULT VALUES. It's up to you whether you want # (e.g.) C source files (.c) to have keyword expansion or not. If not, # they should be of type text, otherwise of type ktext. type_binary: exe obj doc xls bin dms lha lzh pdf zip gz tar jar ear wav au snd jpg gif png tif tiff dll lib pdb type_text: ps eps pm env properties mdl sql paramdesc jpr jpx type_ktext: c h cc cpp html xml css type_xtext: pl sh csh # Whether to do a verify or not perform_verify=no
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 4647 | Robert Cowham |
Rename //guest/robert_cowham/perforce/utils/pvcstop4/... To //guest/robert_cowham/perforce/utils/pvcstop4/main/... |
||
//guest/robert_cowham/perforce/utils/pvcstop4/config.ini | |||||
#3 | 3791 | Robert Cowham | Added exclude option (but not fully tested!) | ||
#2 | 3721 | Robert Cowham |
Various changes (tested at a client): - Use PCLI to read file location info (e.g. if moved) - Use P4Perl for speed - Removed DB_File as it has a bug - Do labels differently for vastly improved speed |
||
#1 | 3638 | Robert Cowham |
Renamed some files with windows extensions. Imported changes from Vsstop4 scripts: - Use P4Perl if installed - Use DB_File if installed - Rework labelling algorithm for speed Net result should be much improved performance. Next step is to use pcli. |