Here is the proposed patched (the one sent to the mailing list was
accompagned by a new test). The idea is to not use "." as a prefix for
building the repository path.
diff -r 261cc6b0f15c -r b69a6963d561 hgext/convert/cvsps.py
--- a/hgext/convert/cvsps.py Thu Feb 18 23:23:17 2010 -0600
+++ b/hgext/convert/cvsps.py Mon Feb 22 16:24:52 2010 +0100
@@ -124,9 +124,9 @@
# Get the real directory in the repository
try:
prefix = open(os.path.join('CVS','Repository')).read().strip()
+ directory = prefix
if prefix == ".":
prefix = ""
- directory = prefix
except IOError:
raise logerror('Not a CVS sandbox')
@@ -184,7 +184,10 @@
p = util.normpath(getrepopath(root))
if not p.endswith('/'):
p += '/'
- prefix = p + util.normpath(prefix)
+ if prefix != "": # looks like normpath replaces "" by "."
+ prefix = p + util.normpath(prefix)
+ else:
+ prefix = p
cmd.append(['log', 'rlog'][rlog])
if date:
# no space between option and date string
|