[Updated] D8495: tests: show poor error message for `hg cp -A --at-rev . non-existent dst`
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Thu May 7 18:21:27 UTC 2020
Closed by commit rHG8e47b43d665f: tests: show poor error message for `hg cp -A --at-rev . non-existent dst` (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/D8495?vs=21272&id=21313
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D8495/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D8495
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
@@ -11,7 +11,7 @@
Test single file
-# One recoded copy, one copy to record after commit
+# One recorded copy, one copy to record after commit
$ hg cp d1/b d1/c
$ cp d1/b d1/d
$ hg add d1/d
@@ -24,6 +24,12 @@
$ hg cp --at-rev . d1/b d1/d
abort: --at-rev requires --after
[255]
+# Errors out with non-existent source
+BROKEN: this should have a better error message
+ $ hg cp -A --at-rev . d1/non-existent d1/d
+ d1/non-existent: no such file in rev 55d1fd85ef0a
+ abort: --at-rev requires a single source
+ [255]
# Errors out with non-existent destination
$ hg cp -A --at-rev . d1/b d1/non-existent
abort: d1/non-existent: copy destination does not exist in 8a9d70fa20c9
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/bfb68b5a/attachment-0002.html>
More information about the Mercurial-patches
mailing list