Mercurial > hg
diff contrib/dumprevlog @ 6750:fb42030d79d6
add __len__ and __iter__ methods to repo and revlog
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 26 Jun 2008 14:35:50 -0500 |
parents | 9c426da6b03b |
children | 9fe97eea5510 |
line wrap: on
line diff
--- a/contrib/dumprevlog Thu Jun 26 14:35:50 2008 -0500 +++ b/contrib/dumprevlog Thu Jun 26 14:35:50 2008 -0500 @@ -12,7 +12,7 @@ binopen = lambda fn: open(fn, 'rb') r = revlog.revlog(binopen, f) print "file:", f - for i in xrange(r.count()): + for i in r: n = r.node(i) p = r.parents(n) d = r.revision(n)