Move enabling of demandimport to dispatch.py
authorAlexis S. L. Carvalho <alexis@cecm.usp.br>
Fri, 17 Aug 2007 17:33:27 -0300
changeset 5193 da1658d63647
parent 5192 60acf1432ee0
child 5194 b111e9a907b1
Move enabling of demandimport to dispatch.py This avoids loading many modules before enabling demandimport.
mercurial/commands.py
mercurial/dispatch.py
--- a/mercurial/commands.py	Fri Aug 17 17:33:27 2007 -0300
+++ b/mercurial/commands.py	Fri Aug 17 17:33:27 2007 -0300
@@ -5,7 +5,6 @@
 # This software may be used and distributed according to the terms
 # of the GNU General Public License, incorporated herein by reference.
 
-import demandimport; demandimport.enable()
 from node import *
 from i18n import _
 import os, re, sys, urllib
--- a/mercurial/dispatch.py	Fri Aug 17 17:33:27 2007 -0300
+++ b/mercurial/dispatch.py	Fri Aug 17 17:33:27 2007 -0300
@@ -5,6 +5,7 @@
 # This software may be used and distributed according to the terms
 # of the GNU General Public License, incorporated herein by reference.
 
+import demandimport; demandimport.enable()
 from node import *
 from i18n import _
 import os, sys, atexit, signal, pdb, traceback, socket, errno, shlex, time