# HG changeset patch # User Michael Glassford # Date 2010-03-31 14:59:00 # Node ID ce2ae8bf3ae37c9bd8aa50fb7b5bef2cbb36284e # Parent 1148a968a0700d047c790edd5cbded240534da2e Add missing --mq option to hg log. Since norepo is a string, not a list, the norepo check was matching command names against any substring in norepo. This fix splits norepo into a list of commands. diff --git a/hgext/mq.py b/hgext/mq.py --- a/hgext/mq.py +++ b/hgext/mq.py @@ -2669,9 +2669,10 @@ def uisetup(ui): entry = extensions.wrapcommand(commands.table, 'init', mqinit) entry[1].extend(mqopt) + norepo = commands.norepo.split(" ") for cmd in commands.table.keys(): cmd = cmdutil.parsealiases(cmd)[0] - if cmd in commands.norepo: + if cmd in norepo: continue entry = extensions.wrapcommand(commands.table, cmd, mqcommand) entry[1].extend(mqopt)