# HG changeset patch # User Alexis S. L. Carvalho # Date 1187382807 10800 # Node ID da1658d6364721c8bccc6303d100c14b358ecfd9 # Parent 60acf1432ee019fbf1c41f39c2ce3165064535f0 Move enabling of demandimport to dispatch.py This avoids loading many modules before enabling demandimport. diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -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 diff --git a/mercurial/dispatch.py b/mercurial/dispatch.py --- a/mercurial/dispatch.py +++ b/mercurial/dispatch.py @@ -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