This is needed to make Mercurial read the HGEXTENSIONPATH to detect third-party extensions. It is called HGEXTENSIONPATH and not HG_EXTENSION_PATH to keep it consistent with other environment variables for Mercurial, e.g. HGENCODINGAMBIGUOUS, HGEDITOR ... Hopefully I or someone else will get this into Mercurial proper. diff --git a/mercurial/extensions.py b/mercurial/extensions.py --- a/mercurial/extensions.py +++ b/mercurial/extensions.py @@ -13,6 +13,7 @@ import imp import inspect import os +import sys from .i18n import ( _, @@ -108,6 +109,11 @@ def _importh(name): """import and return the module""" + # Read HGEXTENSIONSPATH environment variable when import extensions. + extension_path = os.getenv("HGEXTENSIONSPATH") + if extension_path is not None: + for path in extension_path: + sys.path.append(path) mod = __import__(pycompat.sysstr(name)) components = name.split(b'.') for comp in components[1:]: tabs'> aboutsummaryrefslogtreecommitdiff
path: root/tests/cran.scm
AgeCommit message (Expand)Author
2021-12-18import: cran: Fix description->package test....This follows up on commit 5cd1019488c44081aaf030fbe8bc357d78daef23. * tests/cran.scm (description): Include a very long line. (description->package): Update the golden description to match the paragraph filling now performed by BEAUTIFY-DESCRIPTION. Tobias Geerinckx-Rice
2021-07-11import: cran: Emit new-style package inputs....* guix/import/cran.scm (format-inputs): Emit symbols or 'specification->package' calls. (maybe-inputs): Wrap in 'list' instead of 'quasiquote'. * tests/cran.scm ("description->package"): Adjust accordingly. Ludovic Courtès