bisect: remove redundant clean checks
authorMatt Mackall <mpm@selenic.com>
Thu, 27 Dec 2007 23:55:39 -0600
changeset 5713 f9620af9f8d8
parent 5712 45e788bd9216
child 5714 9d50b2450ac3
bisect: remove redundant clean checks
hgext/hbisect.py
--- a/hgext/hbisect.py	Thu Dec 27 23:55:39 2007 -0600
+++ b/hgext/hbisect.py	Thu Dec 27 23:55:39 2007 -0600
@@ -176,14 +176,13 @@
 
     def autonext(self):
         """find and update to the next revision to test"""
+        rev = self.next()
         check_clean(self.ui, self.repo)
-        rev = self.next()
         if rev is not None:
             return hg.clean(self.repo, rev)
 
     def autogood(self, rev=None):
         """mark revision as good and update to the next revision to test"""
-        check_clean(self.ui, self.repo)
         rev = lookup_rev(self.ui, self.repo, rev)
         self.goodrevs.append(rev)
         if self.badrev:
@@ -191,7 +190,6 @@
 
     def autobad(self, rev=None):
         """mark revision as bad and update to the next revision to test"""
-        check_clean(self.ui, self.repo)
         rev = lookup_rev(self.ui, self.repo, rev)
         self.badrev = rev
         if self.goodrevs: