##// END OF EJS Templates
Enable demandimport only in scripts, not in importable modules (issue605)...
Enable demandimport only in scripts, not in importable modules (issue605) This way other applications can choose if and when they want this feature, because it might be problematic if those applications rely on ImportError.

File last commit:

r5197:55860a45 default
r5197:55860a45 default
Show More
hg
14 lines | 421 B | text/plain | TextLexer
#!/usr/bin/env python
#
# mercurial - scalable distributed SCM
#
# Copyright 2005-2007 Matt Mackall <mpm@selenic.com>
#
# This software may be used and distributed according to the terms
# of the GNU General Public License, incorporated herein by reference.
# enable importing on demand to reduce startup time
from mercurial import demandimport; demandimport.enable()
import mercurial.dispatch
mercurial.dispatch.run()