Mercurial > hg
comparison tests/test-rename-rev.t @ 44804:5c49a4fdb238
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 | 9dab3fa64325 |
children | 02bf61bb4a70 |
comparison
equal
deleted
inserted
replaced
44803:de0fb4463a3d | 44804:5c49a4fdb238 |
---|---|
36 A d1/c | 36 A d1/c |
37 d1/b | 37 d1/b |
38 A d1/d | 38 A d1/d |
39 d1/b | 39 d1/b |
40 | 40 |
41 Test moved file (not copied) | |
42 | |
43 $ hg co 0 | |
44 0 files updated, 0 files merged, 2 files removed, 0 files unresolved | |
45 $ mv d1/b d1/d | |
46 $ hg rm -A d1/b | |
47 $ hg add d1/d | |
48 $ hg ci -m 'move d1/b to d1/d' | |
49 created new head | |
50 BROKEN: this should work | |
51 $ hg cp -A --at-rev . d1/b d1/d | |
52 d1/b: no such file in rev 519850c3ea27 | |
53 abort: --at-rev requires a single source | |
54 [255] | |
55 $ hg st -C --change . | |
56 A d1/d | |
57 R d1/b | |
58 | |
41 Test using directory as destination | 59 Test using directory as destination |
42 | 60 |
43 $ hg co 0 | 61 $ hg co 0 |
44 0 files updated, 0 files merged, 2 files removed, 0 files unresolved | 62 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
45 $ cp -R d1 d3 | 63 $ cp -R d1 d3 |
46 $ hg add d3 | 64 $ hg add d3 |
47 adding d3/a | 65 adding d3/a |
48 adding d3/b | 66 adding d3/b |
49 adding d3/ba | 67 adding d3/ba |