changeset 6318:308988071b90

convert: Add convert.cvsps option to set up an alternate cvsps command line.
author Eric Hopper <hopper@omnifarious.org>
date Mon, 17 Mar 2008 12:41:14 -0700
parents b0d937869417
children 8999d1249171
files hgext/convert/cvs.py
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/convert/cvs.py	Mon Mar 17 12:40:02 2008 -0700
+++ b/hgext/convert/cvs.py	Mon Mar 17 12:41:14 2008 -0700
@@ -14,7 +14,9 @@
         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 @@
             return
 
         maxrev = 0
-        cmd = 'cvsps -A -u --cvs-direct -q'
+        cmd = self.cmd
         if self.rev:
             # TODO: handle tags
             try: