changeset 10498:dc9a803c1800 stable

mq: iterate over a copy of the command table keys (fixes issue2045). I hope.
author Brendan Cully <brendan@kublai.com>
date Wed, 17 Feb 2010 14:35:11 -0800
parents 45734b51c99b
children 4401b0dfee88
files hgext/mq.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/mq.py	Wed Feb 17 23:07:50 2010 +0100
+++ b/hgext/mq.py	Wed Feb 17 14:35:11 2010 -0800
@@ -2664,7 +2664,7 @@
     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