Show More
@@ -1,20 +1,27 | |||
|
1 | 1 | #!/usr/bin/env python |
|
2 | 2 | # |
|
3 | 3 | # mercurial - scalable distributed SCM |
|
4 | 4 | # |
|
5 | 5 | # Copyright 2005-2007 Matt Mackall <mpm@selenic.com> |
|
6 | 6 | # |
|
7 | 7 | # This software may be used and distributed according to the terms |
|
8 | 8 | # of the GNU General Public License, incorporated herein by reference. |
|
9 | 9 | |
|
10 | 10 | # enable importing on demand to reduce startup time |
|
11 | from mercurial import demandimport; demandimport.enable() | |
|
11 | try: | |
|
12 | from mercurial import demandimport; demandimport.enable() | |
|
13 | except ImportError: | |
|
14 | import sys | |
|
15 | sys.stderr.write("abort: couldn't find mercurial libraries in [%s]\n" % | |
|
16 | ' '.join(sys.path)) | |
|
17 | sys.stderr.write("(check your install and PYTHONPATH)\n") | |
|
18 | sys.exit(-1) | |
|
12 | 19 | |
|
13 | 20 | import sys |
|
14 | 21 | import mercurial.util |
|
15 | 22 | import mercurial.dispatch |
|
16 | 23 | |
|
17 | 24 | for fp in (sys.stdin, sys.stdout, sys.stderr): |
|
18 | 25 | mercurial.util.set_binary(fp) |
|
19 | 26 | |
|
20 | 27 | mercurial.dispatch.run() |
General Comments 0
You need to be logged in to leave comments.
Login now