changeset 10476:3113736dbac5 stable

mq: more instructive use of "--" in qguard help (issue2040)
author Martin Geisler <mg@lazybytes.net>
date Mon, 15 Feb 2010 00:12:10 +0100
parents 601a9d67825a
children 44b4a2a31623
files hgext/mq.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/mq.py	Sun Feb 14 23:17:28 2010 +0100
+++ b/hgext/mq.py	Mon Feb 15 00:12:10 2010 +0100
@@ -2152,7 +2152,7 @@
 
     To set guards on another patch::
 
-      hg qguard -- other.patch +2.6.17 -stable
+      hg qguard other.patch -- +2.6.17 -stable
     '''
     def status(idx):
         guards = q.series_guards[idx] or ['unguarded']
@@ -2721,7 +2721,7 @@
         (guard,
          [('l', 'list', None, _('list all patches and guards')),
           ('n', 'none', None, _('drop all guards'))],
-         _('hg qguard [-l] [-n] -- [PATCH] [+GUARD]... [-GUARD]...')),
+         _('hg qguard [-l] [-n] [PATCH] [-- [+GUARD]... [-GUARD]...]')),
     'qheader': (header, [], _('hg qheader [PATCH]')),
     "^qimport":
         (qimport,