merge with stable
authorMatt Mackall <mpm@selenic.com>
Thu, 15 Mar 2012 13:11:42 -0500
changeset 16261 7b9bf72430ba
parent 16260 33fcad3cfbbc (current diff)
parent 16258 594fc9329628 (diff)
child 16262 bf7a6c3b2a4a
merge with stable
mercurial/merge.py
--- a/mercurial/dirstate.py	Thu Mar 15 13:11:03 2012 -0500
+++ b/mercurial/dirstate.py	Thu Mar 15 13:11:42 2012 -0500
@@ -78,10 +78,6 @@
         return self._copymap
 
     @propertycache
-    def _normroot(self):
-        return util.normcase(self._root)
-
-    @propertycache
     def _foldmap(self):
         f = {}
         for name in self._map:
@@ -406,7 +402,7 @@
                 folded = path
             else:
                 folded = self._foldmap.setdefault(normed,
-                                util.fspath(normed, self._normroot))
+                                util.fspath(normed, self._root))
         return folded
 
     def normalize(self, path, isknown=False):
--- a/mercurial/merge.py	Thu Mar 15 13:11:03 2012 -0500
+++ b/mercurial/merge.py	Thu Mar 15 13:11:42 2012 -0500
@@ -170,7 +170,7 @@
         if m and m != a: # changed from a to m
             return m
         if n and n != a: # changed from a to n
-            if (n == 'l' or a == 'l') and m1[f] != ma[f]:
+            if (n == 'l' or a == 'l') and m1.get(f) != ma.get(f):
                 # can't automatically merge symlink flag when there
                 # are file-level conflicts here, let filemerge take
                 # care of it