tests: add test of committing with conflicts but no changes in wdir
I'm about to change the behavior slightly here, so let's have a test
that shows that.
Differential Revision: https://phab.mercurial-scm.org/D8194
--- a/tests/test-update-branches.t Fri Feb 28 00:17:26 2020 +0100
+++ b/tests/test-update-branches.t Fri Feb 28 10:49:13 2020 -0800
@@ -343,6 +343,22 @@
$ hg resolve -l
U a
+Try to make empty commit while there are conflicts
+ $ hg revert -r . a
+ $ rm a.orig
+ $ hg ci -m empty
+ nothing changed
+ [1]
+ $ hg resolve -m a
+ (no more unresolved files)
+ $ hg resolve -l
+ R a
+ $ hg ci -m empty
+ nothing changed
+ [1]
+ $ hg resolve -l
+ R a
+
Change/delete conflict is not allowed
$ hg up -qC 3
$ hg rm foo