Mercurial > hg-stable
comparison tests/test-completion.t @ 45389:5178dd2233d0
rename: add support for --at-rev, which marks as copy and removes the source
I had previously only added support for `--at-rev` to `hg cp`, but not
to `hg mv`. This patch adds that support. Just like for `hg cp`, it
marks the destination as copied from the source, and doesn't care if
the source file still exists (because it only supports the `-A` mode,
aka "don't touch files" mode). It works whether or not the source file
still exists. This matches the behavior of `hg mv -A` in the working
copy.
Differential Revision: https://phab.mercurial-scm.org/D8840
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 28 Jul 2020 09:58:28 -0700 |
parents | 87047efbc6a6 |
children | ac7a3da0dbb6 |
comparison
equal
deleted
inserted
replaced
45388:d71693f799a0 | 45389:5178dd2233d0 |
---|---|
351 phase: public, draft, secret, force, rev | 351 phase: public, draft, secret, force, rev |
352 pull: update, force, confirm, rev, bookmark, branch, ssh, remotecmd, insecure | 352 pull: update, force, confirm, rev, bookmark, branch, ssh, remotecmd, insecure |
353 push: force, rev, bookmark, branch, new-branch, pushvars, publish, ssh, remotecmd, insecure | 353 push: force, rev, bookmark, branch, new-branch, pushvars, publish, ssh, remotecmd, insecure |
354 recover: verify | 354 recover: verify |
355 remove: after, force, subrepos, include, exclude, dry-run | 355 remove: after, force, subrepos, include, exclude, dry-run |
356 rename: after, force, include, exclude, dry-run | 356 rename: after, at-rev, force, include, exclude, dry-run |
357 resolve: all, list, mark, unmark, no-status, re-merge, tool, include, exclude, template | 357 resolve: all, list, mark, unmark, no-status, re-merge, tool, include, exclude, template |
358 revert: all, date, rev, no-backup, interactive, include, exclude, dry-run | 358 revert: all, date, rev, no-backup, interactive, include, exclude, dry-run |
359 rollback: dry-run, force | 359 rollback: dry-run, force |
360 root: template | 360 root: template |
361 serve: accesslog, daemon, daemon-postexec, errorlog, port, address, prefix, name, web-conf, webdir-conf, pid-file, stdio, cmdserver, templates, style, ipv6, certificate, print-url, subrepos | 361 serve: accesslog, daemon, daemon-postexec, errorlog, port, address, prefix, name, web-conf, webdir-conf, pid-file, stdio, cmdserver, templates, style, ipv6, certificate, print-url, subrepos |