comparison mercurial/commands.py @ 45793:4db5671d57d9

help: update command synopsis to clarify "cp --forget" only takes destinations I'm a bit confused while reading 03690079d7dd, which says "a destination file", but the code loops over matched files.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 17 Oct 2020 21:57:21 +0900
parents 74271829ddc0
children 330c258fe7ca
comparison
equal deleted inserted replaced
45792:1703a7f9d5b8 45793:4db5671d57d9
2349 _(b'forcibly copy over an existing managed file'), 2349 _(b'forcibly copy over an existing managed file'),
2350 ), 2350 ),
2351 ] 2351 ]
2352 + walkopts 2352 + walkopts
2353 + dryrunopts, 2353 + dryrunopts,
2354 _(b'[OPTION]... SOURCE... DEST'), 2354 _(b'[OPTION]... (SOURCE... DEST | --forget DEST...)'),
2355 helpcategory=command.CATEGORY_FILE_CONTENTS, 2355 helpcategory=command.CATEGORY_FILE_CONTENTS,
2356 ) 2356 )
2357 def copy(ui, repo, *pats, **opts): 2357 def copy(ui, repo, *pats, **opts):
2358 """mark files as copied for the next commit 2358 """mark files as copied for the next commit
2359 2359