diff mercurial/bundlerepo.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 602f7c1ab954
children 63b5f4c73c98
line wrap: on
line diff
--- a/mercurial/bundlerepo.py	Thu Jun 26 14:35:50 2008 -0500
+++ b/mercurial/bundlerepo.py	Thu Jun 26 14:35:50 2008 -0500
@@ -34,7 +34,7 @@
             for chunk in changegroup.chunkiter(bundlefile):
                 pos = bundlefile.tell()
                 yield chunk, pos - len(chunk)
-        n = self.count()
+        n = len(self)
         prev = None
         for chunk, start in chunkpositer():
             size = len(chunk)