changeset 5976:a65d17b1b463 stable

tests: add test showing that touch preserves copies
author Martin von Zweigbergk <martinvonz@google.com>
date Mon, 05 Oct 2020 10:29:29 -0700
parents 0511c4fd5378
children fa7f2e1cb504
files tests/test-touch.t
diffstat 1 files changed, 17 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-touch.t	Wed Jun 23 10:44:37 2021 +0300
+++ b/tests/test-touch.t	Mon Oct 05 10:29:29 2020 -0700
@@ -236,3 +236,20 @@
   1 new content-divergent changesets
 
   $ cd ..
+
+Touch preserves copies
+
+  $ hg init copies
+  $ cd copies
+  $ echo a > a
+  $ hg ci -Aqm a
+  $ hg cp a b
+  $ hg ci -Aqm 'copy a to b'
+  $ hg status --copies --change .
+  A b
+    a
+  $ hg touch
+  $ hg status --copies --change .
+  A b
+    a
+  $ cd ..