Message3366

Author ThomasAH
Recipients alexis, brendan, mpm
Date 2007-06-27.12:39:38
Content
When importing mercurial.commands or mercurial.hgweb.hgwebdir_mod demandimport
is automatically activated, but not for many other modules.
This is not consistent, e.g. for hgweb.cgi or other tools importing parts of
mercurial.

My suggestion:

Add "import mercurial.demandimport; mercurial.demandimport.enable()" to the hg
and cgi scripts and let other applications decide for themselves whether they
want to use it or not.

Currently even our own setup.py uses
mercurial.demandimport.enable = lambda: None
to disable it ...
History
Date User Action Args
2007-06-27 12:39:42ThomasAHsetrecipients: + mpm, brendan, alexis
2007-06-27 12:39:40ThomasAHsetmessageid: <1182947980.31.0.719289879501.issue605@selenic.com>
2007-06-27 12:39:40ThomasAHlinkissue605 messages
2007-06-27 12:39:38ThomasAHcreate