Mercurial > hg
comparison hgext/convert/cvs.py @ 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 | fb259a3572e9 |
children | 127e8c3466d1 e1d8e79d7c8f |
comparison
equal
deleted
inserted
replaced
6317:b0d937869417 | 6318:308988071b90 |
---|---|
12 | 12 |
13 cvs = os.path.join(path, "CVS") | 13 cvs = os.path.join(path, "CVS") |
14 if not os.path.exists(cvs): | 14 if not os.path.exists(cvs): |
15 raise NoRepo("%s does not look like a CVS checkout" % path) | 15 raise NoRepo("%s does not look like a CVS checkout" % path) |
16 | 16 |
17 for tool in ('cvsps', 'cvs'): | 17 self.cmd = ui.config('convert', 'cvsps', 'cvsps -A -u --cvs-direct -q') |
18 cvspsexe = self.cmd.split(None, 1)[0] | |
19 for tool in (cvspsexe, 'cvs'): | |
18 checktool(tool) | 20 checktool(tool) |
19 | 21 |
20 self.changeset = {} | 22 self.changeset = {} |
21 self.files = {} | 23 self.files = {} |
22 self.tags = {} | 24 self.tags = {} |
32 def _parse(self): | 34 def _parse(self): |
33 if self.changeset: | 35 if self.changeset: |
34 return | 36 return |
35 | 37 |
36 maxrev = 0 | 38 maxrev = 0 |
37 cmd = 'cvsps -A -u --cvs-direct -q' | 39 cmd = self.cmd |
38 if self.rev: | 40 if self.rev: |
39 # TODO: handle tags | 41 # TODO: handle tags |
40 try: | 42 try: |
41 # patchset number? | 43 # patchset number? |
42 maxrev = int(self.rev) | 44 maxrev = int(self.rev) |