changeset 5713:f9620af9f8d8

bisect: remove redundant clean checks
author Matt Mackall <mpm@selenic.com>
date Thu, 27 Dec 2007 23:55:39 -0600
parents 45e788bd9216
children 9d50b2450ac3
files hgext/hbisect.py
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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: