Mercurial > hg-stable
changeset 13715:2edf41a90b9d
repair: revlog has an iterator
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 20 Mar 2011 20:21:19 -0500 |
parents | 7f53ce232d63 |
children | 6d7338f5320a |
files | mercurial/repair.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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: