[Updated] D8493: tests: show that `hg cp -A --at-rev .` doesn't work for renames
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Thu May 7 18:21:22 UTC 2020
Closed by commit rHG5c49a4fdb238: tests: show that `hg cp -A --at-rev .` doesn't work for renames (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D8493?vs=21270&id=21311
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D8493/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D8493
AFFECTED FILES
tests/test-rename-rev.t
CHANGE DETAILS
diff --git a/tests/test-rename-rev.t b/tests/test-rename-rev.t
--- a/tests/test-rename-rev.t
+++ b/tests/test-rename-rev.t
@@ -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
To: martinvonz, #hg-reviewers
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20200507/6cc4c8c2/attachment-0002.html>
More information about the Mercurial-patches
mailing list