--- a/tests/test-touch.t Wed Jul 17 17:58:40 2019 +0200
+++ b/tests/test-touch.t Sat Jun 29 14:28:35 2019 +0530
@@ -170,3 +170,23 @@
(see 'hg help phases' for details)
[255]
$ hg touch --duplicate 2
+
+ $ cd ..
+
+Make sure touch doesn't fail to warn about divergence (issue6107)
+
+ $ hg init touchdiv
+ $ cd touchdiv
+ $ echo c > c
+ $ hg add c
+ $ hg ci -m "added c"
+
+ $ hg amend -m "modified c"
+ $ hg prune . -q
+
+ $ hg touch -r "desc('added c')" --hidden
+ $ hg touch -r "desc('modified c')" --hidden
+ 2 new content-divergent changesets
+XXX: it should warn for divergence here
+
+ $ cd ..