copy: add option to unmark file as copied
To unmark a file as copied, the user currently has to do this: hg forget <dest> hg add <dest> The new command simplifies that to: hg copy --forget <dest> That's not a very big improvement, but I'm planning to also teach `hg copy [--forget]` a `--at-rev` argument for marking/unmarking copies after commit (usually with `--at-rev .`). Differential Revision: https://phab.mercurial-scm.org/D8029
Showing
- mercurial/cmdutil.py 21 additions, 0 deletionsmercurial/cmdutil.py
- mercurial/commands.py 6 additions, 2 deletionsmercurial/commands.py
- relnotes/next 2 additions, 0 deletionsrelnotes/next
- tests/test-completion.t 1 addition, 1 deletiontests/test-completion.t
- tests/test-copy.t 57 additions, 0 deletionstests/test-copy.t
Loading
Please register or sign in to comment