# HG changeset patch # User Brendan Cully # Date 2010-02-17 22:35:11 # Node ID dc9a803c1800b853fddddd427437d8f79c5459ca # Parent 45734b51c99b8fe8ca164bf5feb25755381ab2f0 mq: iterate over a copy of the command table keys (fixes issue2045). I hope. diff --git a/hgext/mq.py b/hgext/mq.py --- a/hgext/mq.py +++ b/hgext/mq.py @@ -2664,7 +2664,7 @@ def uisetup(ui): entry = extensions.wrapcommand(commands.table, 'init', mqinit) entry[1].extend(mqopt) - for cmd in commands.table: + for cmd in commands.table.keys(): cmd = cmdutil.parsealiases(cmd)[0] if cmd in commands.norepo: continue