Patchwork help: update command synopsis to clarify "cp --forget" only takes destinations

login
register
mail settings
Submitter Yuya Nishihara
Date Oct. 17, 2020, 1:29 p.m.
Message ID <83d7de825c015dfa43de.1602941382@mimosa>
Download mbox | patch
Permalink /patch/47493/
State New
Headers show

Comments

Yuya Nishihara - Oct. 17, 2020, 1:29 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1602939441 -32400
#      Sat Oct 17 21:57:21 2020 +0900
# Node ID 83d7de825c015dfa43de228513ca8a75676a8286
# Parent  da20256a34d4c5804d7210b6c4f83767907508e6
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.

Patch

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -2343,7 +2343,7 @@  def continuecmd(ui, repo, **opts):
     ]
     + walkopts
     + dryrunopts,
-    _(b'[OPTION]... SOURCE... DEST'),
+    _(b'[OPTION]... (SOURCE... DEST | --forget DEST...)'),
     helpcategory=command.CATEGORY_FILE_CONTENTS,
 )
 def copy(ui, repo, *pats, **opts):