equal
deleted
inserted
replaced
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 |