[Updated] D8932: commit: clear mergestate also with --amend (issue6304)

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Mon Aug 24 09:12:59 UTC 2020


Closed by commit rHG6ba7190ff863: commit: clear mergestate also with --amend (issue6304) (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D8932?vs=22411&id=22429

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D8932/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D8932

AFFECTED FILES
  mercurial/cmdutil.py
  tests/test-amend.t

CHANGE DETAILS

diff --git a/tests/test-amend.t b/tests/test-amend.t
--- a/tests/test-amend.t
+++ b/tests/test-amend.t
@@ -113,7 +113,6 @@
   $ hg ci --amend --config experimental.evolution.allowunstable=True
   1 new orphan changesets
   $ hg resolve -l
-  R f
   $ cd ..
 #endif
 
diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py
--- a/mercurial/cmdutil.py
+++ b/mercurial/cmdutil.py
@@ -3259,6 +3259,7 @@
         if opts.get(b'secret'):
             commitphase = phases.secret
         newid = repo.commitctx(new)
+        ms.reset()
 
         # Reroute the working copy parent to the new changeset
         repo.setparents(newid, nullid)



To: martinvonz, #hg-reviewers, pulkit
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20200824/702d440b/attachment-0002.html>


More information about the Mercurial-patches mailing list