rollback: clear resolve state (issue4593)
authorMatt Mackall <mpm@selenic.com>
Thu, 16 Apr 2015 18:48:20 -0500
changeset 24784 59406b8b1303
parent 24783 a7f8e3584ef3
child 24785 39f519be5e65
rollback: clear resolve state (issue4593)
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Thu Apr 16 11:31:48 2015 -0700
+++ b/mercurial/localrepo.py	Thu Apr 16 18:48:20 2015 -0500
@@ -1092,6 +1092,9 @@
             else:
                 ui.status(_('working directory now based on '
                             'revision %d\n') % parents)
+            ms = mergemod.mergestate(self)
+            ms.reset(self['.'].node())
+
         # TODO: if we know which new heads may result from this rollback, pass
         # them to destroy(), which will prevent the branchhead cache from being
         # invalidated.