Submitter | phabricator |
---|---|
Date | Aug. 25, 2019, 4:09 p.m. |
Message ID | <0e60a74bd3a8a98c6365ed4470a62612@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/41403/ |
State | Not Applicable |
Headers | show |
Comments
Patch
diff --git a/contrib/genosxversion.py b/contrib/genosxversion.py --- a/contrib/genosxversion.py +++ b/contrib/genosxversion.py @@ -2,14 +2,13 @@ from __future__ import absolute_import, print_function import argparse -import json import os import subprocess import sys # Always load hg libraries from the hg we can find on $PATH. -hglib = json.loads(subprocess.check_output( - ['hg', 'debuginstall', '-Tjson']))[0]['hgmodules'] +hglib = subprocess.check_output( + ['hg', 'debuginstall', '-T', '{hgmodules}']) sys.path.insert(0, os.path.dirname(hglib)) from mercurial import util