convert: iterate
authorBryan O'Sullivan <bos@serpentine.com>
Wed, 07 Nov 2007 17:07:14 -0800
changeset 5511 03bb1296a1c3
parent 5510 11d7908a3ea8
child 5512 8cd26ccc68f8
convert: iterate
hgext/convert/subversion.py
--- a/hgext/convert/subversion.py	Wed Nov 07 17:06:02 2007 -0800
+++ b/hgext/convert/subversion.py	Wed Nov 07 17:07:14 2007 -0800
@@ -151,7 +151,7 @@
 
     def setrevmap(self, revmap):
         lastrevs = {}
-        for revid in revmap.keys():
+        for revid in revmap.iterkeys():
             uuid, module, revnum = self.revsplit(revid)
             lastrevnum = lastrevs.setdefault(module, revnum)
             if revnum > lastrevnum: