179 check_clean(self.ui, self.repo) |
179 check_clean(self.ui, self.repo) |
180 rev = self.next() |
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 good(self, rev): |
|
185 self.goodrevs.append(rev) |
|
186 |
|
187 def autogood(self, rev=None): |
184 def autogood(self, rev=None): |
188 """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""" |
189 check_clean(self.ui, self.repo) |
186 check_clean(self.ui, self.repo) |
190 rev = lookup_rev(self.ui, self.repo, rev) |
187 rev = lookup_rev(self.ui, self.repo, rev) |
191 self.good(rev) |
188 self.goodrevs.append(rev) |
192 if self.badrev: |
189 if self.badrev: |
193 return self.autonext() |
190 return self.autonext() |
194 |
191 |
195 def bad(self, rev): |
|
196 self.badrev = rev |
|
197 |
|
198 def autobad(self, rev=None): |
192 def autobad(self, rev=None): |
199 """mark revision as bad and update to the next revision to test""" |
193 """mark revision as bad and update to the next revision to test""" |
200 check_clean(self.ui, self.repo) |
194 check_clean(self.ui, self.repo) |
201 rev = lookup_rev(self.ui, self.repo, rev) |
195 rev = lookup_rev(self.ui, self.repo, rev) |
202 self.bad(rev) |
196 self.badrev = rev |
203 if self.goodrevs: |
197 if self.goodrevs: |
204 self.autonext() |
198 self.autonext() |
205 |
199 |
206 # should we put it in the class ? |
200 # should we put it in the class ? |
207 def test(ui, repo, rev): |
201 def test(ui, repo, rev): |