Re: [PATCH 1 of 2] copy: correct synopsis by making SOURCE a required argument

2019-07-03 Thread Yuya Nishihara
On Wed, 03 Jul 2019 10:08:19 +0800, Anton Shestakov wrote:
> # HG changeset patch
> # User Anton Shestakov 
> # 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.
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


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

2019-07-02 Thread Anton Shestakov
# HG changeset patch
# User Anton Shestakov 
# 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

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
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel