Commit db90df73 authored by Martin von Zweigbergk's avatar Martin von Zweigbergk

copy: clarify in help text that `hg co --forget` takes a *destination* file

We had a user who tried to pass a source file. The command then fails
with `<file>: not unmarking as copy - file is not marked as copied`,
so at least it's not just silent, but let's be a little clearer in the
documentation.

Differential Revision: https://phab.mercurial-scm.org/D9214
parent fbde66b05da4
......@@ -2328,7 +2328,7 @@ def continuecmd(ui, repo, **opts):
@command(
b'copy|cp',
[
(b'', b'forget', None, _(b'unmark a file as copied')),
(b'', b'forget', None, _(b'unmark a destination file as copied')),
(b'A', b'after', None, _(b'record a copy that has already occurred')),
(
b'',
......@@ -2360,9 +2360,9 @@ def copy(ui, repo, *pats, **opts):
exist in the working directory. If invoked with -A/--after, the
operation is recorded, but no copying is performed.
To undo marking a file as copied, use --forget. With that option,
all given (positional) arguments are unmarked as copies. The destination
file(s) will be left in place (still tracked).
To undo marking a destination file as copied, use --forget. With that
option, all given (positional) arguments are unmarked as copies. The
destination file(s) will be left in place (still tracked).
This command takes effect with the next commit by default.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment