hgext/hbisect.py
changeset 2305 e7de4dd43472
parent 1862 b41d71961aed
child 2348 1772852d7d14
equal deleted inserted replaced
2304:b3a08ccfb593 2305:e7de4dd43472
   171         if tot == 1:
   171         if tot == 1:
   172             if ancestors.pop() != self.badrev:
   172             if ancestors.pop() != self.badrev:
   173                 self.ui.warn("Could not find the first bad revision\n")
   173                 self.ui.warn("Could not find the first bad revision\n")
   174                 sys.exit(1)
   174                 sys.exit(1)
   175             self.ui.write(
   175             self.ui.write(
   176                 "The first bad revision is : %s\n" % hg.hex(self.badrev))
   176                 "The first bad revision is: %s\n" % hg.hex(self.badrev))
   177             sys.exit(0)
   177             sys.exit(0)
   178         self.ui.write("%d revisions left\n" % tot)
   178         self.ui.write("%d revisions left\n" % tot)
   179         best_rev = None
   179         best_rev = None
   180         best_len = -1
   180         best_len = -1
   181         for n in ancestors:
   181         for n in ancestors: