From 83533f55200c879d2894eb09d6e6493eaad7d2ad Mon Sep 17 00:00:00 2001 From: moculus Date: Sun, 16 Mar 2008 23:28:31 +0000 Subject: [PATCH] blargo2 --HG-- branch : pmacs2 --- method/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: