diff --git a/method/__init__.py b/method/__init__.py index 55a3874..69eaaf0 100644 --- a/method/__init__.py +++ b/method/__init__.py @@ -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: