mercurial/repair.py
changeset 13715 2edf41a90b9d
parent 13705 73cfb7a5aa56
child 13747 cede00420e1e
equal deleted inserted replaced
13714:7f53ce232d63 13715:2edf41a90b9d
    35 
    35 
    36 def _collectbrokencsets(repo, files, striprev):
    36 def _collectbrokencsets(repo, files, striprev):
    37     """return the changesets which will be broken by the truncation"""
    37     """return the changesets which will be broken by the truncation"""
    38     s = set()
    38     s = set()
    39     def collectone(revlog):
    39     def collectone(revlog):
    40         links = (revlog.linkrev(i) for i in xrange(len(revlog)))
    40         links = (revlog.linkrev(i) for i in revlog)
    41         # find the truncation point of the revlog
    41         # find the truncation point of the revlog
    42         for lrev in links:
    42         for lrev in links:
    43             if lrev >= striprev:
    43             if lrev >= striprev:
    44                 break
    44                 break
    45         # see if any revision after this point has a linkrev
    45         # see if any revision after this point has a linkrev