diff options
Diffstat (limited to 'libbe/git.py')
-rw-r--r-- | libbe/git.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libbe/git.py b/libbe/git.py index 046e72e..e57014f 100644 --- a/libbe/git.py +++ b/libbe/git.py @@ -69,7 +69,7 @@ class Git(RCS): self._rcs_add(path) def _rcs_get_file_contents(self, path, revision=None): if revision == None: - return file(self._u_abspath(path), "rb").read() + return RCS._rcs_get_file_contents(self, path, revision) else: arg = "%s:%s" % (revision,path) status,output,error = self._u_invoke_client("show", arg) @@ -85,7 +85,7 @@ class Git(RCS): status,output,error = self._u_invoke_client('commit', '-a', '-F', commitfile) revision = None - revline = re.compile("Created (.*)commit (.*):(.*)") + revline = re.compile("(.*) (.*)[:\]] (.*)") match = revline.search(output) assert match != None, output+error assert len(match.groups()) == 3 |