changeset 5134:d9b1336f7d1c

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`.
author Martin von Zweigbergk <martinvonz@google.com>
date Tue, 04 Feb 2020 13:43:16 -0800
parents 53dd70f557aa
children 731b5a89a784
files tests/test-touch.t
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 ..