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

Anton Shestakov av6 at dwimlabs.net
Tue Jul 2 22:08:19 EDT 2019


# HG changeset patch
# User Anton Shestakov <av6 at 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

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


More information about the Mercurial-devel mailing list