This is an archive of the discontinued Mercurial Phabricator instance.

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

Authored by martinvonz on Oct 15 2020, 1:31 PM.

Details

Summary

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.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

martinvonz created this revision.Oct 15 2020, 1:31 PM
pulkit added a subscriber: pulkit.Oct 15 2020, 2:29 PM

<file>: not unmarking as copy - file is not marked as copied

I think we have room for improving this error message too. Queued this, many thanks!

pulkit accepted this revision.Oct 15 2020, 2:29 PM
This revision is now accepted and ready to land.Oct 15 2020, 2:29 PM