bisect: fold in two trivial functions
authorMatt Mackall <mpm@selenic.com>
Thu, 27 Dec 2007 23:55:39 -0600
changeset 5712 45e788bd9216
parent 5711 f6fa7ae0ffff
child 5713 f9620af9f8d8
bisect: fold in two trivial functions
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
@@ -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()