mercurial/revlog.py
changeset 10915 c9543bc6be16
parent 10900 cf016c9831d1
parent 10914 b7ca37b90762
child 10919 435615a676b0
--- a/mercurial/revlog.py	Wed Apr 14 19:49:06 2010 +0200
+++ b/mercurial/revlog.py	Thu Apr 15 13:52:41 2010 +0200
@@ -294,8 +294,7 @@
         return key in self.p.map
     def __iter__(self):
         yield nullid
-        for i in xrange(self.p.l):
-            ret = self.p.index[i]
+        for i, ret in enumerate(self.p.index):
             if not ret:
                 self.p.loadindex(i)
                 ret = self.p.index[i]