##// END OF EJS Templates
repair: revlog has an iterator
Matt Mackall -
r13715:2edf41a9 default
parent child Browse files
Show More
@@ -37,7 +37,7 b' def _collectbrokencsets(repo, files, str'
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:
General Comments 0
You need to be logged in to leave comments. Login now