[PATCH 5 of 9] shelve: mention FILE options in help

Mads Kiilerich mads at kiilerich.com
Sun Feb 9 18:01:14 CST 2014


# HG changeset patch
# User Mads Kiilerich <madski at unity3d.com>
# Date 1391990007 -3600
#      Mon Feb 10 00:53:27 2014 +0100
# Node ID 5d873a5e38865e6f2017e8e9ece3f4fd92f5a131
# Parent  a9a4695a337aa5f3ba9325a5a339fb94a0f74aa6
shelve: mention FILE options in help

Shelve do normally take a list of files or patterns to shelve and the command
summary should thus show [FILE]...

Note: --delete is a bit special and interpret the parameters as a list of
shelve names. This change makes that even less obvious from the help. Too bad
- we can't please everyone.

diff --git a/hgext/shelve.py b/hgext/shelve.py
--- a/hgext/shelve.py
+++ b/hgext/shelve.py
@@ -632,7 +632,7 @@ def unshelve(ui, repo, *shelved, **opts)
            _('show patch')),
           ('', 'stat', None,
            _('output diffstat-style summary of changes'))] + commands.walkopts,
-         _('hg shelve [OPTION]...'))
+         _('hg shelve [OPTION]... [FILE]...'))
 def shelvecmd(ui, repo, *pats, **opts):
     '''save and set aside changes from the working directory
 


More information about the Mercurial-devel mailing list