diff hgext/mq.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/mq.py	Thu Jun 26 14:35:50 2008 -0500
+++ b/hgext/mq.py	Thu Jun 26 14:35:50 2008 -0500
@@ -2319,7 +2319,7 @@
             # we might as well use it, but we won't save it.
 
             # update the cache up to the tip
-            self._updatebranchcache(partial, start, cl.count())
+            self._updatebranchcache(partial, start, len(cl))
 
             return partial