From 6846b0dc3be562f9da62ab62494500f1673318a0 Mon Sep 17 00:00:00 2001 From: moculus Date: Sun, 16 Mar 2008 23:32:08 +0000 Subject: [PATCH] continuing to work on svn-commit --HG-- branch : pmacs2 --- method/__init__.py | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/method/__init__.py b/method/__init__.py index a7b0384..20de4d8 100644 --- a/method/__init__.py +++ b/method/__init__.py @@ -1124,18 +1124,17 @@ class SvnCommit(Method): status = status >> 8 lines = data.split('\n') - try: - if status != 0: - raise Exception - for line in lines: - m = self.regex.match(line) - if m: - w.set_error("Committed [%s]" % (m.group(1))) - return - w.set_error("Up-to-date") - except: - w.set_error("Problems with SVN commit: %d" % status) - w.application.data_buffer("*Commit*", repr(lines), switch_to=True) + if status == 0: + try: + for line in lines: + m = self.regex.match(line) + if m: + w.set_error("Committed [%s]" % (m.group(1))) + return + except: + pass + w.set_error("Problems with SVN commit: %d" % status) + w.application.data_buffer("*Commit*", repr(lines), switch_to=True) class SvnStatus(Method): column = {