sapling/hg
Thomas Arendsen Hein 90d76a6ec9 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.
2007-08-18 11:37:08 +02:00

15 lines
421 B
Python
Executable File

#!/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()