Index: cvs.py
===================================================================
--- cvs.py (revision 1392)
+++ cvs.py (working copy)
@@ -127,6 +127,7 @@
class CVSClient:
+ regex_repopath = re.compile(r'^(?P<hostname>.*):(?P<port>\d+)?(?P<path>.*)')
def __init__(self, repository):
self.tempdir = ""
self.currentdir = os.getcwd()
@@ -145,6 +146,18 @@
# working directory even though we force stdout with -p.
self.tempdir = tempfile.mkdtemp()
os.chdir(self.tempdir)
+
+ # Do same regex as in CVSTool class at top of this file to get handle to repo location
+ m = self.regex_repopath.match(self.repository)
+ repo = m.group("path")
+
+ # We strip the repo of of the fully qualified path as CVS does not like to be given absolute
+ # paths
+ filename = filename.replace(repo,'')
+
+ # Not sure why but we get the CVS ",v" version here instead of the plain file name. Str