mercurial/repair.py
changeset 8624 2b3dec0ef3ae
parent 8479 3e16c0fc2241
child 9125 8b58f53b9c35
equal deleted inserted replaced
8623:0c159aa7b329 8624:2b3dec0ef3ae
    34     """return the nodes that have to be saved before the strip"""
    34     """return the nodes that have to be saved before the strip"""
    35     def collectone(revlog):
    35     def collectone(revlog):
    36         extra = []
    36         extra = []
    37         startrev = count = len(revlog)
    37         startrev = count = len(revlog)
    38         # find the truncation point of the revlog
    38         # find the truncation point of the revlog
    39         for i in xrange(0, count):
    39         for i in xrange(count):
    40             lrev = revlog.linkrev(i)
    40             lrev = revlog.linkrev(i)
    41             if lrev >= link:
    41             if lrev >= link:
    42                 startrev = i + 1
    42                 startrev = i + 1
    43                 break
    43                 break
    44 
    44