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

login
register
mail settings
Submitter Mads Kiilerich
Date Feb. 10, 2014, 12:01 a.m.
Message ID <5d873a5e38865e6f2017.1391990474@localhost.localdomain>
Download mbox | patch
Permalink /patch/3529/
State Accepted
Commit fc535464822476c6a00d4fa15deb28e1e7e44c19
Headers show

Comments

Mads Kiilerich - Feb. 10, 2014, 12:01 a.m.
# HG changeset patch
# User Mads Kiilerich <madski@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.

Patch

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