[PATCH 4 of 4 lazy-manifest v2] context: don't sort manifest entries
Augie Fackler
raf at durin42.com
Mon Jan 12 14:04:49 CST 2015
# HG changeset patch
# User Augie Fackler <augie at google.com>
# Date 1416200425 18000
# Mon Nov 17 00:00:25 2014 -0500
# Node ID 69278200bc1a32278b6820928e8386ebc619cefe
# Parent 13cbdac8a5a034c9a2de29da174160b1aefd1f99
context: don't sort manifest entries
The manifest iterator is now pre-sorted, so we can skip this check.
diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -101,8 +101,7 @@ class basectx(object):
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
More information about the Mercurial-devel
mailing list