merge: drop resolve state for mergers with identical contents (issue2680)
authorMatt Mackall <mpm@selenic.com>
Sat, 05 Mar 2011 16:34:59 -0600
changeset 13536 fac040b7e822
parent 13535 0d3cce1de233
child 13537 37f487b9fbcc
merge: drop resolve state for mergers with identical contents (issue2680)
mercurial/merge.py
--- a/mercurial/merge.py	Fri Mar 04 19:21:36 2011 -0600
+++ 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