tests: add test of `hg touch -A`
authorMartin von Zweigbergk <martinvonz@google.com>
Tue, 04 Feb 2020 13:43:16 -0800
changeset 5134 d9b1336f7d1c
parent 5131 53dd70f557aa
child 5135 731b5a89a784
tests: add test of `hg touch -A` There didn't seem to be any before. It currently passes because the test case incorrectly (IMO) sets `evolution.allowdivergence = True`.
tests/test-touch.t
--- a/tests/test-touch.t	Sat Feb 15 16:52:56 2020 +0800
+++ b/tests/test-touch.t	Tue Feb 04 13:43:16 2020 -0800
@@ -223,4 +223,9 @@
   (a)llow divergence or (d)uplicate the changeset?  a
   2 new content-divergent changesets
 
+But -A allows divergence
+
+  $ hg touch -r "desc('modified c')" --hidden -A
+  1 new content-divergent changesets
+
   $ cd ..