maybe fixed commit weirdness

--HG--
branch : pmacs2
This commit is contained in:
moculus 2007-11-30 21:36:13 +00:00
parent 63810fb143
commit e695725a34
1 changed files with 6 additions and 5 deletions

View File

@ -1064,11 +1064,12 @@ class CvsCommit(Method):
lines = data.split('\n') lines = data.split('\n')
if status == 0: if status == 0:
m = self.regex.match(lines[-1]) for line in lines:
if m: m = self.regex.match(lines[-1])
w.set_error("Committed [%s -> %s]" % (m.group(2), m.group(1))) if m:
else: w.set_error("Committed [%s -> %s]" % (m.group(2), m.group(1)))
w.set_error("Up-to-date") return
w.set_error("Up-to-date")
else: else:
w.set_error("Problems with CVS commit: %d" % status) w.set_error("Problems with CVS commit: %d" % status)
w.application.data_buffer("*Commit*", data, switch_to=True) w.application.data_buffer("*Commit*", data, switch_to=True)