lazymanifest: fix pure hg iterkeys()
authorMartin von Zweigbergk <martinvonz@google.com>
Thu, 12 Mar 2015 18:53:44 -0700
changeset 24297 0178f500d61e
parent 24295 2b7ab29627fd
child 24298 49cd847fd69a
lazymanifest: fix pure hg iterkeys() I broke pure hg when I just added iterkeys() to the native version in 2b7ab29627fd. I forgot to make the pure version sorted. Fix it.
mercurial/manifest.py
--- a/mercurial/manifest.py	Wed Mar 11 13:46:15 2015 -0700
+++ b/mercurial/manifest.py	Thu Mar 12 18:53:44 2015 -0700
@@ -46,6 +46,9 @@
     def __iter__(self):
         return ((f, e[0], e[1]) for f, e in sorted(self.iteritems()))
 
+    def iterkeys(self):
+        return iter(sorted(dict.keys(self)))
+
     def copy(self):
         c = _lazymanifest('')
         c.update(self)