merge: removed sorting in casefolding detection, for a slight performance win
authorAlex Gaynor <agaynor@mozilla.com>
Fri, 14 Jul 2017 19:27:28 +0000
changeset 33808 055fee3547df
parent 33807 b70029f355a3
child 33809 1bf5c5507614
merge: removed sorting in casefolding detection, for a slight performance win It was not required for the correctness of the algorithm. Differential Revision: https://phab.mercurial-scm.org/D30
mercurial/merge.py
--- a/mercurial/merge.py	Thu Aug 10 21:00:30 2017 -0700
+++ b/mercurial/merge.py	Fri Jul 14 19:27:28 2017 +0000
@@ -753,7 +753,7 @@
 
     # check case-folding collision in provisional merged manifest
     foldmap = {}
-    for f in sorted(pmmf):
+    for f in pmmf:
         fold = util.normcase(f)
         if fold in foldmap:
             raise error.Abort(_("case-folding collision between %s and %s")