contrib/hbisect.py
changeset 1856 b8bd84ad9b67
parent 1855 0ba9dee8cfbd
child 1861 65949d1c9bf7
equal deleted inserted replaced
1855:0ba9dee8cfbd 1856:b8bd84ad9b67
   111         node -> number of ancestors (self included)
   111         node -> number of ancestors (self included)
   112         """
   112         """
   113         cl = self.repo.changelog
   113         cl = self.repo.changelog
   114         if not stop:
   114         if not stop:
   115             stop = sets.Set([])
   115             stop = sets.Set([])
   116             for g in reversed(self.goodrevs):
   116             for i in xrange(len(self.goodrevs)-1, -1, -1):
       
   117                 g = self.goodrevs[i]
   117                 if g in stop:
   118                 if g in stop:
   118                     continue
   119                     continue
   119                 stop.update(cl.reachable(g))
   120                 stop.update(cl.reachable(g))
   120         def num_children(a):
   121         def num_children(a):
   121             """
   122             """