fixed cvs-commit

--HG--
branch : pmacs2
This commit is contained in:
moculus 2007-11-05 20:44:29 +00:00
parent b8fe9de80e
commit 1b88f3c600
1 changed files with 2 additions and 1 deletions

View File

@ -1074,11 +1074,12 @@ class CvsCommit(Method):
cmd = "cvs ci -m %r %r" % (vargs['msg'], path)
(status, data) = commands.getstatusoutput(cmd)
status = status >> 8
lines = data.split('\n')
if status == 0:
m = self.regex.match(lines[-1])
if m:
w.set_error("Committed [%s -> %s]" % (m.group(1), m.group(2)))
w.set_error("Committed [%s -> %s]" % (m.group(2), m.group(1)))
else:
w.set_error("Up-to-date")
else: