Mercurial > evolve
comparison tests/test-touch.t @ 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 | a1dad44fe3da |
children | bf48247af25a |
comparison
equal
deleted
inserted
replaced
5975:0511c4fd5378 | 5976:a65d17b1b463 |
---|---|
234 | 234 |
235 $ hg touch -r "desc('modified c')" --hidden -A | 235 $ hg touch -r "desc('modified c')" --hidden -A |
236 1 new content-divergent changesets | 236 1 new content-divergent changesets |
237 | 237 |
238 $ cd .. | 238 $ cd .. |
239 | |
240 Touch preserves copies | |
241 | |
242 $ hg init copies | |
243 $ cd copies | |
244 $ echo a > a | |
245 $ hg ci -Aqm a | |
246 $ hg cp a b | |
247 $ hg ci -Aqm 'copy a to b' | |
248 $ hg status --copies --change . | |
249 A b | |
250 a | |
251 $ hg touch | |
252 $ hg status --copies --change . | |
253 A b | |
254 a | |
255 $ cd .. |