merge: drop resolve state for mergers with identical contents (issue2680) stable
authorMatt Mackall <mpm@selenic.com>
Sat, 05 Mar 2011 16:34:59 -0600
branchstable
changeset 13549 6217040b2780
parent 13547 a2dc8819bb0d
child 13550 1792b8a9422b
merge: drop resolve state for mergers with identical contents (issue2680)
mercurial/merge.py
--- a/mercurial/merge.py	Sun Mar 06 22:03:30 2011 +0100
+++ b/mercurial/merge.py	Sat Mar 05 16:34:59 2011 -0600
@@ -74,7 +74,10 @@
         fco = octx[ofile]
         fca = self._repo.filectx(afile, fileid=anode)
         r = filemerge.filemerge(self._repo, self._local, lfile, fcd, fco, fca)
-        if not r:
+        if r is None:
+            # no real conflict
+            del self._state[dfile]
+        elif not r:
             self.mark(dfile, 'r')
         return r