mq: fix bad interaction between demandload and update of commands.norepo
authorVadim Gelfer <vadim.gelfer@gmail.com>
Mon, 21 Aug 2006 13:59:17 -0700
changeset 2967 a9d7a43fb3f0
parent 2966 3b7626b861f8
child 2968 4cdb68d7eb92
mq: fix bad interaction between demandload and update of commands.norepo problem was that commands.norepo was not updated properly.
hgext/mq.py
--- a/hgext/mq.py
+++ b/hgext/mq.py
@@ -31,8 +31,9 @@ refresh contents of top applied patch   
 
 from mercurial.demandload import *
 from mercurial.i18n import gettext as _
+from mercurial import commands
 demandload(globals(), "os sys re struct traceback errno bz2")
-demandload(globals(), "mercurial:cmdutil,commands,hg,patch,revlog,ui,util")
+demandload(globals(), "mercurial:cmdutil,hg,patch,revlog,ui,util")
 
 commands.norepo += " qclone qversion"