diff hgext/churn.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 53465a7464e2
children 9d2ab50803e9
line wrap: on
line diff
--- a/hgext/churn.py	Thu Jun 26 14:35:50 2008 -0500
+++ b/hgext/churn.py	Thu Jun 26 14:35:50 2008 -0500
@@ -91,7 +91,7 @@
     cl    = repo.changelog
 
     if not revs:
-        revs = range(0, cl.count())
+        revs = range(len(cl))
 
     nr_revs = len(revs)
     cur_rev = 0