comparison hgext/hbisect.py @ 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
comparison
equal deleted inserted replaced
5712:45e788bd9216 5713:f9620af9f8d8
174 self.ui.write(msg) 174 self.ui.write(msg)
175 return best_rev 175 return best_rev
176 176
177 def autonext(self): 177 def autonext(self):
178 """find and update to the next revision to test""" 178 """find and update to the next revision to test"""
179 rev = self.next()
179 check_clean(self.ui, self.repo) 180 check_clean(self.ui, self.repo)
180 rev = self.next()
181 if rev is not None: 181 if rev is not None:
182 return hg.clean(self.repo, rev) 182 return hg.clean(self.repo, rev)
183 183
184 def autogood(self, rev=None): 184 def autogood(self, rev=None):
185 """mark revision as good and update to the next revision to test""" 185 """mark revision as good and update to the next revision to test"""
186 check_clean(self.ui, self.repo)
187 rev = lookup_rev(self.ui, self.repo, rev) 186 rev = lookup_rev(self.ui, self.repo, rev)
188 self.goodrevs.append(rev) 187 self.goodrevs.append(rev)
189 if self.badrev: 188 if self.badrev:
190 return self.autonext() 189 return self.autonext()
191 190
192 def autobad(self, rev=None): 191 def autobad(self, rev=None):
193 """mark revision as bad and update to the next revision to test""" 192 """mark revision as bad and update to the next revision to test"""
194 check_clean(self.ui, self.repo)
195 rev = lookup_rev(self.ui, self.repo, rev) 193 rev = lookup_rev(self.ui, self.repo, rev)
196 self.badrev = rev 194 self.badrev = rev
197 if self.goodrevs: 195 if self.goodrevs:
198 self.autonext() 196 self.autonext()
199 197