Mercurial > hg
changeset 44813:af9970501021 stable
tests: show that `hg cp -A --at-rev .` doesn't work for renames
I clearly forgot to implement (and test) support for marking of
renames when I added support for marking of copies :(
Differential Revision: https://phab.mercurial-scm.org/D8493
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Wed, 06 May 2020 11:41:01 -0700 |
parents | 79f6f856c53f |
children | 1cdc80280286 |
files | tests/test-rename-rev.t |
diffstat | 1 files changed, 19 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-rename-rev.t Fri May 08 01:19:48 2020 +0200 +++ b/tests/test-rename-rev.t Wed May 06 11:41:01 2020 -0700 @@ -38,10 +38,28 @@ A d1/d d1/b +Test moved file (not copied) + + $ hg co 0 + 0 files updated, 0 files merged, 2 files removed, 0 files unresolved + $ mv d1/b d1/d + $ hg rm -A d1/b + $ hg add d1/d + $ hg ci -m 'move d1/b to d1/d' + created new head +BROKEN: this should work + $ hg cp -A --at-rev . d1/b d1/d + d1/b: no such file in rev 519850c3ea27 + abort: --at-rev requires a single source + [255] + $ hg st -C --change . + A d1/d + R d1/b + Test using directory as destination $ hg co 0 - 0 files updated, 0 files merged, 2 files removed, 0 files unresolved + 1 files updated, 0 files merged, 1 files removed, 0 files unresolved $ cp -R d1 d3 $ hg add d3 adding d3/a