Mercurial > hg
changeset 24297:0178f500d61e
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.
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Thu, 12 Mar 2015 18:53:44 -0700 |
parents | 2b7ab29627fd |
children | 49cd847fd69a |
files | mercurial/manifest.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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)