Mercurial > public > mercurial-scm > hg
diff hgext/mq.py @ 10401:6252852b4332
mq: add -Q option to all commands not in norepo
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Mon, 08 Feb 2010 10:23:44 +0100 |
parents | 8cb81d75730c |
children | d216fa04e48a |
line wrap: on
line diff
--- a/hgext/mq.py Sun Feb 07 23:07:58 2010 +0100 +++ b/hgext/mq.py Mon Feb 08 10:23:44 2010 +0100 @@ -2638,8 +2638,10 @@ def uisetup(ui): extensions.wrapcommand(commands.table, 'import', mqimport) - for cmd in ('commit', 'export', 'incoming', 'log', 'outgoing', 'pull', - 'push', 'status', 'tag', 'tags', 'tip', 'update'): + for cmd in commands.table: + cmd = cmdutil.parsealiases(cmd)[0] + if cmd in commands.norepo: + continue entry = extensions.wrapcommand(commands.table, cmd, mqcommand) entry[1].extend([('Q', 'mq', None, _("operate on patch repository"))])