changeset 5320:189d82b6962e

bisect: don't write data on failure
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Sat, 22 Sep 2007 18:35:53 +0200
parents 5b6e403601d1
children 639935f2e63a
files hgext/hbisect.py
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/hbisect.py	Sat Sep 22 18:23:56 2007 +0200
+++ b/hgext/hbisect.py	Sat Sep 22 18:35:53 2007 +0200
@@ -304,9 +304,11 @@
         ui.warn(_("bisect: Too many arguments\n"))
         return help_()
     try:
-        return bisectcmdtable[cmd][0](*args)
-    finally:
+        ret = bisectcmdtable[cmd][0](*args)
         b.write()
+        return ret
+    except:
+        raise
 
 cmdtable = {
     "bisect": (bisect_run, [], _("hg bisect [help|init|reset|next|good|bad]")),