changeset 5712:45e788bd9216

bisect: fold in two trivial functions
author Matt Mackall <mpm@selenic.com>
date Thu, 27 Dec 2007 23:55:39 -0600
parents f6fa7ae0ffff
children f9620af9f8d8
files hgext/hbisect.py
diffstat 1 files changed, 2 insertions(+), 8 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
@@ -181,25 +181,19 @@
         if rev is not None:
             return hg.clean(self.repo, rev)
 
-    def good(self, rev):
-        self.goodrevs.append(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.good(rev)
+        self.goodrevs.append(rev)
         if self.badrev:
             return self.autonext()
 
-    def bad(self, rev):
-        self.badrev = rev
-
     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.bad(rev)
+        self.badrev = rev
         if self.goodrevs:
             self.autonext()