# HG changeset patch # User Martin von Zweigbergk # Date 1601918969 25200 # Node ID a65d17b1b46314d1a5d479574fe707ce2dfd0086 # Parent 0511c4fd5378289a317a2b5653192cf85c8b00d9 tests: add test showing that touch preserves copies diff -r 0511c4fd5378 -r a65d17b1b463 tests/test-touch.t --- 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 ..