diff hgext/hgk.py @ 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 f6c00b17387c
children 4faaa0535ea7
line wrap: on
line diff
--- a/hgext/hgk.py	Thu Jun 26 14:35:50 2008 -0500
+++ b/hgext/hgk.py	Thu Jun 26 14:35:50 2008 -0500
@@ -175,7 +175,7 @@
 # you can specify a commit to stop at by starting the sha1 with ^
 def revtree(ui, args, repo, full="tree", maxnr=0, parents=False):
     def chlogwalk():
-        count = repo.changelog.count()
+        count = len(repo)
         i = count
         l = [0] * 100
         chunk = 100