[Updated] D8931: tests: add test showing that merge state is not cleared by amend
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Mon Aug 24 09:12:35 UTC 2020
Closed by commit rHGcf21cda4281f: tests: add test showing that merge state is not cleared by amend (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/D8931?vs=22410&id=22428
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D8931/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D8931
AFFECTED FILES
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
@@ -93,6 +93,30 @@
nothing changed
[1]
+#if obsstore-on
+ $ hg init repo-merge-state
+ $ cd repo-merge-state
+ $ echo a > f
+ $ hg ci -Aqm a
+ $ echo b > f
+ $ hg ci -Aqm b
+ $ echo c > f
+ $ hg co -m '.^'
+ merging f
+ warning: conflicts while merging f! (edit, then use 'hg resolve --mark')
+ 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
+ use 'hg resolve' to retry unresolved file merges
+ [1]
+ $ echo d > f
+ $ hg resolve -m f
+ (no more unresolved files)
+ $ hg ci --amend --config experimental.evolution.allowunstable=True
+ 1 new orphan changesets
+ $ hg resolve -l
+ R f
+ $ cd ..
+#endif
+
Matcher and metadata options
$ echo 3 > C
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/ad8351ca/attachment-0002.html>
More information about the Mercurial-patches
mailing list