Show More
@@ -6,9 +6,14 b' import os' | |||
|
6 | 6 | import subprocess |
|
7 | 7 | import sys |
|
8 | 8 | |
|
9 | # Always load hg libraries from the hg we can find on $PATH. | |
|
10 | hglib = subprocess.check_output(['hg', 'debuginstall', '-T', '{hgmodules}']) | |
|
11 | sys.path.insert(0, os.path.dirname(hglib)) | |
|
9 | try: | |
|
10 | # Always load hg libraries from the hg we can find on $PATH. | |
|
11 | hglib = subprocess.check_output(['hg', 'debuginstall', '-T', '{hgmodules}']) | |
|
12 | sys.path.insert(0, os.path.dirname(hglib)) | |
|
13 | except subprocess.CalledProcessError: | |
|
14 | # We're probably running with a PyOxidized Mercurial, so just | |
|
15 | # proceed and hope it works out okay. | |
|
16 | pass | |
|
12 | 17 | |
|
13 | 18 | from mercurial import util |
|
14 | 19 |
General Comments 0
You need to be logged in to leave comments.
Login now