comparison mercurial/commands.py @ 42555:50eacdeea88c stable

copy: correct synopsis by making SOURCE a required argument
author Anton Shestakov <av6@dwimlabs.net>
date Wed, 03 Jul 2019 10:01:51 +0800
parents 013de80bf90e
children 93fed084ce36
comparison
equal deleted inserted replaced
42554:30033d56758f 42555:50eacdeea88c
1855 1855
1856 @command('copy|cp', 1856 @command('copy|cp',
1857 [('A', 'after', None, _('record a copy that has already occurred')), 1857 [('A', 'after', None, _('record a copy that has already occurred')),
1858 ('f', 'force', None, _('forcibly copy over an existing managed file')), 1858 ('f', 'force', None, _('forcibly copy over an existing managed file')),
1859 ] + walkopts + dryrunopts, 1859 ] + walkopts + dryrunopts,
1860 _('[OPTION]... [SOURCE]... DEST'), 1860 _('[OPTION]... SOURCE... DEST'),
1861 helpcategory=command.CATEGORY_FILE_CONTENTS) 1861 helpcategory=command.CATEGORY_FILE_CONTENTS)
1862 def copy(ui, repo, *pats, **opts): 1862 def copy(ui, repo, *pats, **opts):
1863 """mark files as copied for the next commit 1863 """mark files as copied for the next commit
1864 1864
1865 Mark dest as having copies of source files. If dest is a 1865 Mark dest as having copies of source files. If dest is a