mercurial/revlog.py
changeset 97 7a2abee6b0c2
parent 94 7daef883134f
child 98 3dde7c87e36d
--- a/mercurial/revlog.py	Wed May 18 16:45:44 2005 -0800
+++ b/mercurial/revlog.py	Wed May 18 16:47:49 2005 -0800
@@ -87,6 +87,13 @@
             return True
         except KeyError:
             return False
+    def __iter__(self):
+        for i in xrange(self.p.l):
+            try:
+                yield self.p.index[i][6]
+            except:
+                self.p.load(i)
+                yield self.p.index[i][6]
     def __getitem__(self, key):
         try:
             return self.p.map[key]