mq: more instructive use of "--" in qguard help (issue2040) stable
authorMartin Geisler <mg@lazybytes.net>
Mon, 15 Feb 2010 00:12:10 +0100
branchstable
changeset 10476 3113736dbac5
parent 10474 601a9d67825a
child 10477 44b4a2a31623
mq: more instructive use of "--" in qguard help (issue2040)
hgext/mq.py
--- 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,