Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 42188:93fed084ce36 stable
move: --force flag forcibly moves, not copies
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Wed, 03 Jul 2019 10:06:39 +0800 |
parents | 50eacdeea88c |
children | eb7bd7d64a9d |
comparison
equal
deleted
inserted
replaced
42187:50eacdeea88c | 42188:93fed084ce36 |
---|---|
4740 return cmdutil.remove(ui, repo, m, "", uipathfn, after, force, subrepos, | 4740 return cmdutil.remove(ui, repo, m, "", uipathfn, after, force, subrepos, |
4741 dryrun=dryrun) | 4741 dryrun=dryrun) |
4742 | 4742 |
4743 @command('rename|move|mv', | 4743 @command('rename|move|mv', |
4744 [('A', 'after', None, _('record a rename that has already occurred')), | 4744 [('A', 'after', None, _('record a rename that has already occurred')), |
4745 ('f', 'force', None, _('forcibly copy over an existing managed file')), | 4745 ('f', 'force', None, _('forcibly move over an existing managed file')), |
4746 ] + walkopts + dryrunopts, | 4746 ] + walkopts + dryrunopts, |
4747 _('[OPTION]... SOURCE... DEST'), | 4747 _('[OPTION]... SOURCE... DEST'), |
4748 helpcategory=command.CATEGORY_WORKING_DIRECTORY) | 4748 helpcategory=command.CATEGORY_WORKING_DIRECTORY) |
4749 def rename(ui, repo, *pats, **opts): | 4749 def rename(ui, repo, *pats, **opts): |
4750 """rename files; equivalent of copy + remove | 4750 """rename files; equivalent of copy + remove |