Submitter | phabricator |
---|---|
Date | Aug. 20, 2019, 10:34 p.m. |
Message ID | <differential-rev-PHID-DREV-y7c7b2s3xdvh7tutngzv-req@mercurial-scm.org> |
Download | mbox | patch |
Permalink | /patch/41374/ |
State | Superseded |
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