Show More
@@ -38,14 +38,8 b" if getattr(sys, 'frozen', None) == 'cons" | |||||
38 | ) |
|
38 | ) | |
39 | ) |
|
39 | ) | |
40 |
|
40 | |||
|
41 | try: | |||
41 | from hgdemandimport import tracing |
|
42 | from hgdemandimport import tracing | |
42 |
|
||||
43 | with tracing.log('hg script'): |
|
|||
44 | # enable importing on demand to reduce startup time |
|
|||
45 | try: |
|
|||
46 | import hgdemandimport |
|
|||
47 |
|
||||
48 | hgdemandimport.enable() |
|
|||
49 |
|
|
43 | except ImportError: | |
50 |
|
|
44 | sys.stderr.write( | |
51 |
|
|
45 | "abort: couldn't find mercurial libraries in [%s]\n" | |
@@ -54,6 +48,12 b" with tracing.log('hg script'):" | |||||
54 |
|
|
48 | sys.stderr.write("(check your install and PYTHONPATH)\n") | |
55 |
|
|
49 | sys.exit(-1) | |
56 |
|
50 | |||
|
51 | with tracing.log('hg script'): | |||
|
52 | # enable importing on demand to reduce startup time | |||
|
53 | import hgdemandimport | |||
|
54 | ||||
|
55 | hgdemandimport.enable() | |||
|
56 | ||||
57 | from mercurial import dispatch |
|
57 | from mercurial import dispatch | |
58 |
|
58 | |||
59 | dispatch.run() |
|
59 | dispatch.run() |
General Comments 0
You need to be logged in to leave comments.
Login now