comparison mercurial/context.py @ 24227:8ec2df32bd39

context: don't sort manifest entries The manifest iterator is now pre-sorted, so we can skip this check.
author Augie Fackler <augie@google.com>
date Mon, 17 Nov 2014 00:00:25 -0500
parents e0c1328df872
children a07314472a80
comparison
equal deleted inserted replaced
24226:b992769dd1be 24227:8ec2df32bd39
64 64
65 def __getitem__(self, key): 65 def __getitem__(self, key):
66 return self.filectx(key) 66 return self.filectx(key)
67 67
68 def __iter__(self): 68 def __iter__(self):
69 for f in sorted(self._manifest): 69 return iter(self._manifest)
70 yield f
71 70
72 def _manifestmatches(self, match, s): 71 def _manifestmatches(self, match, s):
73 """generate a new manifest filtered by the match argument 72 """generate a new manifest filtered by the match argument
74 73
75 This method is for internal use only and mainly exists to provide an 74 This method is for internal use only and mainly exists to provide an