context: don't sort manifest entries
authorAugie Fackler <augie@google.com>
Mon, 17 Nov 2014 00:00:25 -0500
changeset 24227 8ec2df32bd39
parent 24226 b992769dd1be
child 24228 542c891274b2
context: don't sort manifest entries The manifest iterator is now pre-sorted, so we can skip this check.
mercurial/context.py
--- a/mercurial/context.py	Fri Mar 06 21:29:47 2015 -0500
+++ b/mercurial/context.py	Mon Nov 17 00:00:25 2014 -0500
@@ -66,8 +66,7 @@
         return self.filectx(key)
 
     def __iter__(self):
-        for f in sorted(self._manifest):
-            yield f
+        return iter(self._manifest)
 
     def _manifestmatches(self, match, s):
         """generate a new manifest filtered by the match argument