# HG changeset patch # User Matt Mackall # Date 1198821339 21600 # Node ID f9620af9f8d8f5807b961c3a581cbd15616c4aaa # Parent 45e788bd92160f3a491e2df8e8420215de9a517f bisect: remove redundant clean checks diff -r 45e788bd9216 -r f9620af9f8d8 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: