changeset 5193:da1658d63647

Move enabling of demandimport to dispatch.py This avoids loading many modules before enabling demandimport.
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Fri, 17 Aug 2007 17:33:27 -0300
parents 60acf1432ee0
children b111e9a907b1
files mercurial/commands.py mercurial/dispatch.py
diffstat 2 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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