mirror of
https://github.com/facebook/sapling.git
synced 2024-10-08 07:49:11 +03:00
convert: Add convert.cvsps option to set up an alternate cvsps command line.
This commit is contained in:
parent
63836614e1
commit
40e06fccb8
@ -14,7 +14,9 @@ class convert_cvs(converter_source):
|
||||
if not os.path.exists(cvs):
|
||||
raise NoRepo("%s does not look like a CVS checkout" % path)
|
||||
|
||||
for tool in ('cvsps', 'cvs'):
|
||||
self.cmd = ui.config('convert', 'cvsps', 'cvsps -A -u --cvs-direct -q')
|
||||
cvspsexe = self.cmd.split(None, 1)[0]
|
||||
for tool in (cvspsexe, 'cvs'):
|
||||
checktool(tool)
|
||||
|
||||
self.changeset = {}
|
||||
@ -34,7 +36,7 @@ class convert_cvs(converter_source):
|
||||
return
|
||||
|
||||
maxrev = 0
|
||||
cmd = 'cvsps -A -u --cvs-direct -q'
|
||||
cmd = self.cmd
|
||||
if self.rev:
|
||||
# TODO: handle tags
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user