mq: more instructive use of "--" in qguard help (
issue2040)
--- 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,