--HG--
branch : pmacs2
This commit is contained in:
moculus 2008-03-16 23:28:31 +00:00
parent abdfd2d502
commit 83533f5520
1 changed files with 2 additions and 2 deletions

View File

@ -1108,7 +1108,7 @@ class FileDiff(Method):
class SvnCommit(Method):
'''diff the current file with the version in SVN'''
args = [Argument("msg", type=type(""), prompt="Commit Message: ")]
regex = re.compile('^new revision: ([0-9.]+); previous revision: ([0-9.]+)$')
regex = re.compile(r'^Committed revision ([0-9]+)\.$')
def _execute(self, w, **vargs):
if not hasattr(w.buffer, 'path'):
w.set_error("Buffer has no corresponding file")
@ -1130,7 +1130,7 @@ class SvnCommit(Method):
for line in lines:
m = self.regex.match(lines[-1])
if m:
w.set_error("Committed [%s -> %s]" % (m.group(2), m.group(1)))
w.set_error("Committed [%s]" % (m.group(1)))
return
w.set_error("Up-to-date")
except: