D6460: githelp: add --dry-run for mv
av6 (Anton Shestakov)
phabricator at mercurial-scm.org
Thu May 30 08:47:07 UTC 2019
av6 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D6460
AFFECTED FILES
hgext/githelp.py
CHANGE DETAILS
diff --git a/hgext/githelp.py b/hgext/githelp.py
--- a/hgext/githelp.py
+++ b/hgext/githelp.py
@@ -684,14 +684,17 @@
def mv(ui, repo, *args, **kwargs):
cmdoptions = [
('f', 'force', None, ''),
+ ('n', 'dry-run', None, ''),
]
args, opts = parseoptions(ui, cmdoptions, args)
cmd = Command('mv')
cmd.extend(args)
if opts.get('force'):
cmd['-f'] = None
+ if opts.get('dry_run'):
+ cmd['-n'] = None
ui.status((bytes(cmd)), "\n")
To: av6, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list