Mercurial > public > mercurial-scm > hg-stable
diff mercurial/repair.py @ 13715:2edf41a90b9d
repair: revlog has an iterator
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 20 Mar 2011 20:21:19 -0500 |
parents | 73cfb7a5aa56 |
children | cede00420e1e |
line wrap: on
line diff
--- a/mercurial/repair.py Sun Mar 20 20:17:57 2011 -0500 +++ b/mercurial/repair.py Sun Mar 20 20:21:19 2011 -0500 @@ -37,7 +37,7 @@ """return the changesets which will be broken by the truncation""" s = set() def collectone(revlog): - links = (revlog.linkrev(i) for i in xrange(len(revlog))) + links = (revlog.linkrev(i) for i in revlog) # find the truncation point of the revlog for lrev in links: if lrev >= striprev: