Re: Massive conversion
Phil Pinkerton <[email protected]> Fri, 8 Jun 2012 10:47:08 -0400
| Newsgroups | gmane.comp.version-control.subversion.cvs2svn.user |
|---|---|
| Message-ID | <CAFnDTNj5mNk4ftgRhVHjAon1RvGDO2xaQfwvbQQXZd1vJZroww@mail.gmail.com> |
Not working : more than likely pilot error with the syntax. This is my
first time using cvs2svn. any advice would be nice.
Output after running script:
[code]
sent 1723840 bytes received 3674338363 bytes 3959140.77 bytes/sec
total size is 5480990444 speedup is 1.49
Traceback (most recent call last):
File "/opt/cvs2svn-2.3.0/cvs2svn", line 70, in ?
svn_main(os.path.basename(sys.argv[0]), sys.argv[1:])
File "/opt/cvs2svn-2.3.0/cvs2svn_lib/main.py", line 102, in svn_main
run_options = SVNRunOptions(progname, cmd_args, pass_manager)
File "/opt/cvs2svn-2.3.0/cvs2svn_lib/run_options.py", line 247, in __init__
(self.options, self.args) = parser.parse_args(args=self.cmd_args)
File "/usr/lib64/python2.4/optparse.py", line 1275, in parse_args
stop = self._process_args(largs, rargs, values)
File "/usr/lib64/python2.4/optparse.py", line 1315, in _process_args
self._process_long_opt(rargs, values)
File "/usr/lib64/python2.4/optparse.py", line 1390, in _process_long_opt
option.process(opt, value, values, self)
File "/usr/lib64/python2.4/optparse.py", line 707, in process
return self.take_action(
File "/usr/lib64/python2.4/optparse.py", line 726, in take_action
self.callback(self, opt, value, parser, *args, **kwargs)
File "/opt/cvs2svn-2.3.0/cvs2svn_lib/run_options.py", line 811, in
callback_options
self.process_options_file(value)
File "/opt/cvs2svn-2.3.0/cvs2svn_lib/run_options.py", line 1030, in
process_options_file
execfile(options_filename, g)
File "/webdata/cvs2svn/commercialCVS_options.txt", line 6
ctx.revision_excluder = InternalRevisionExcluder()
^
SyntaxError: invalid syntax
[/code]
Here is the script I run :( had to change names for security reasons)
[code] is not in the script of course )
[code]
#!/bin/sh
DUMP="commercial_ALL"
DEST="/webdata/cvs2svn/$DUMP"
test -d $DEST || mkdir -p $DEST
rsync --delete -a -v -z -x [email protected]:/cvs/commercial/ $DEST/
/opt/cvs2svn-2.3.0/cvs2svn -p CollateSymbolsPass
--options=/webdata/cvs2svn/CVS_options.txt
[/code]
Here is the options file ( note there are 70 projects, but I just show
the first one here as the only thing that changes is the project name)
[code]
ctx.output_option = DumpfileOutputOption(
dumpfile_path=r'/webdata/cvs2svn/commercial_ALL', # Name of dumpfile to create
# author_transforms=author_transforms,
# )
ctx.revision_recorder = InternalRevisionRecorder(compress=True)
ctx.revision_excluder = InternalRevisionExcluder()
ctx.revision_reader = InternalRevisionReader(compress=True)
ctx.retain_conflicting_attic_files = True
run_options.add_project(
'/webdata/cvs2svn/commercial_ALL/AFSApp',
trunk_path='AFSApp/trunk',
branches_path='AFSApp/branches',
tags_path='AFSApp/tags')
...[/code]
On Fri, Jun 8, 2012 at 8:51 AM, Michael Haggerty <[email protected]> wrote:
> On 06/08/2012 12:22 PM, Phil Pinkerton wrote:
>>
>> Great, Had a syntax error but found the problem.
>>
>> Now the error has to do with other parameters I have in the command line
>> that are not to be used with --options
>> --retain-conflicting-attic-files
>> --dumpfile
>> --tmpdir
>>
>> I suspect I'll need to put those in the options file as well
>
>
> Yes, every command line option has an options-file equivalent.
>
>
> Michael
>
> --
> Michael Haggerty
> [email protected]
> http://softwareswirl.blogspot.com/
--
" The fundamental principle here is that the justification for a
physical concept lies exclusively in its clear and unambiguous
relation to the facts that it can be experienced" AE
Please Feed and Educate the Children... it's the least any of us can do.
------------------------------------------------------
http://cvs2svn.tigris.org/ds/viewMessage.do?dsForumId=1670&dsMessageId=2969816
To unsubscribe from this discussion, e-mail: [[email protected]].