--- a/mercurial/merge.py Wed Oct 12 12:22:18 2016 +0200
+++ b/mercurial/merge.py Wed Oct 12 12:22:18 2016 +0200
@@ -475,7 +475,7 @@
flo = fco.flags()
fla = fca.flags()
if 'x' in flags + flo + fla and 'l' not in flags + flo + fla:
- if fca.node() == nullid:
+ if fca.node() == nullid and flags != flo:
if preresolve:
self._repo.ui.warn(
_('warning: cannot merge flags for %s\n') % afile)
--- a/tests/test-merge-types.t Wed Oct 12 12:22:18 2016 +0200
+++ b/tests/test-merge-types.t Wed Oct 12 12:22:18 2016 +0200
@@ -337,7 +337,6 @@
merging a
warning: cannot merge flags for b
merging b
- warning: cannot merge flags for bx
merging bx
warning: cannot merge flags for c
merging d
@@ -400,7 +399,6 @@
merging a
warning: cannot merge flags for b
merging b
- warning: cannot merge flags for bx
merging bx
warning: cannot merge flags for c
merging d