2005-05-04 01:16:10 +04:00
|
|
|
#!/usr/bin/env python
|
|
|
|
#
|
2006-02-06 07:21:02 +03:00
|
|
|
# mercurial - scalable distributed SCM
|
2005-05-04 01:16:10 +04:00
|
|
|
#
|
2007-06-19 10:51:34 +04:00
|
|
|
# Copyright 2005-2007 Matt Mackall <mpm@selenic.com>
|
2005-05-04 01:16:10 +04:00
|
|
|
#
|
2009-04-26 03:08:54 +04:00
|
|
|
# This software may be used and distributed according to the terms of the
|
2010-01-20 07:20:08 +03:00
|
|
|
# GNU General Public License version 2 or any later version.
|
2005-05-04 01:16:10 +04:00
|
|
|
|
2007-08-18 13:37:08 +04:00
|
|
|
# enable importing on demand to reduce startup time
|
2009-01-20 01:19:09 +03:00
|
|
|
try:
|
|
|
|
from mercurial import demandimport; demandimport.enable()
|
|
|
|
except ImportError:
|
|
|
|
import sys
|
|
|
|
sys.stderr.write("abort: couldn't find mercurial libraries in [%s]\n" %
|
|
|
|
' '.join(sys.path))
|
|
|
|
sys.stderr.write("(check your install and PYTHONPATH)\n")
|
|
|
|
sys.exit(-1)
|
2007-08-18 13:37:08 +04:00
|
|
|
|
2007-11-10 23:30:59 +03:00
|
|
|
import sys
|
|
|
|
import mercurial.util
|
2007-08-16 01:55:13 +04:00
|
|
|
import mercurial.dispatch
|
2007-11-10 23:30:59 +03:00
|
|
|
|
|
|
|
for fp in (sys.stdin, sys.stdout, sys.stderr):
|
|
|
|
mercurial.util.set_binary(fp)
|
|
|
|
|
2007-08-16 01:55:13 +04:00
|
|
|
mercurial.dispatch.run()
|