Move enabling of demandimport to dispatch.py
This avoids loading many modules before enabling demandimport.
--- 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