Patchwork [1,of,2] copy: correct synopsis by making SOURCE a required argument

login
register
mail settings
Submitter Anton Shestakov
Date July 3, 2019, 2:08 a.m.
Message ID <9151cf680e05ebe73223.1562119699@neuro>
Download mbox | patch
Permalink /patch/40742/
State Accepted
Headers show

Comments

Anton Shestakov - July 3, 2019, 2:08 a.m.
# HG changeset patch
# User Anton Shestakov <av6@dwimlabs.net>
# Date 1562119311 -28800
#      Wed Jul 03 10:01:51 2019 +0800
# Node ID 9151cf680e05ebe7322388f25af3376f52e004a8
# Parent  e3df1e15bee9d70d6cc4697e503091a7bff0f8fc
copy: correct synopsis by making SOURCE a required argument
Yuya Nishihara - July 3, 2019, 12:22 p.m.
On Wed, 03 Jul 2019 10:08:19 +0800, Anton Shestakov wrote:
> # HG changeset patch
> # User Anton Shestakov <av6@dwimlabs.net>
> # Date 1562119311 -28800
> #      Wed Jul 03 10:01:51 2019 +0800
> # Node ID 9151cf680e05ebe7322388f25af3376f52e004a8
> # Parent  e3df1e15bee9d70d6cc4697e503091a7bff0f8fc
> copy: correct synopsis by making SOURCE a required argument

Queued for stable, thanks.

Patch

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -1873,7 +1873,7 @@  def config(ui, repo, *values, **opts):
     [('A', 'after', None, _('record a copy that has already occurred')),
     ('f', 'force', None, _('forcibly copy over an existing managed file')),
     ] + walkopts + dryrunopts,
-    _('[OPTION]... [SOURCE]... DEST'),
+    _('[OPTION]... SOURCE... DEST'),
     helpcategory=command.CATEGORY_FILE_CONTENTS)
 def copy(ui, repo, *pats, **opts):
     """mark files as copied for the next commit