hgext3rd/evolve/stablerange.py
changeset 4738 45508676ed00
parent 4737 46c990705a96
child 4814 48b30ff742cb
equal deleted inserted replaced
4737:46c990705a96 4738:45508676ed00
   762         """
   762         """
   763         value = self._inheritancecache.get(merge)
   763         value = self._inheritancecache.get(merge)
   764         if value is None:
   764         if value is None:
   765             revs = self.revsfromrange(repo, (merge, 0))
   765             revs = self.revsfromrange(repo, (merge, 0))
   766             i = reversed(revs)
   766             i = reversed(revs)
   767             i.next() # pop the merge
   767             next(i) # pop the merge
   768             expected = len(revs) - 1
   768             expected = len(revs) - 1
   769             # Since we do warmup properly, we can expect the cache to be hot
   769             # Since we do warmup properly, we can expect the cache to be hot
   770             # for everythin under the merge we investigate
   770             # for everythin under the merge we investigate
   771             cache = repo.depthcache
   771             cache = repo.depthcache
   772             # note: we cannot do a binary search because element under the
   772             # note: we cannot do a binary search because element under the