merge: accept missing revisions in symlink flag merge (issue3316) stable
authorMatt Mackall <mpm@selenic.com>
Wed, 14 Mar 2012 14:45:41 -0500
branchstable
changeset 16257 7a5524f240ad
parent 16255 ca5cc2976574
child 16258 594fc9329628
merge: accept missing revisions in symlink flag merge (issue3316)
mercurial/merge.py
--- a/mercurial/merge.py	Tue Mar 13 16:28:08 2012 -0500
+++ b/mercurial/merge.py	Wed Mar 14 14:45:41 2012 -0500
@@ -173,7 +173,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