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 |