mirror of
https://https.git.savannah.gnu.org/git/guix.git/
synced 2025-07-12 01:50:46 +02:00
* gnu/packages/version-control.scm (mercurial): Update to 6.7.2. [source]<origin>(patches): Remove mercurial-openssl-compat.patch. * gnu/packages/patches/mercurial-hg-extension-path.patch: adapt for mercurial 6.7.2. * gnu/packages/patches/mercurial-openssl-compat.patch: Delete file. * gnu/local.mk (dist_patch_DATA): Unregister it. Change-Id: I1e22d7f38e264576bfa3adef7004fef582a1137e Signed-off-by: Greg Hogan <code@greghogan.com>
21 lines
867 B
Diff
21 lines
867 B
Diff
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
|
|
@@ -103,6 +103,11 @@
|
|
|
|
def _importh(name):
|
|
"""import and return the <name> 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__(name)
|
|
components = name.split('.')
|
|
for comp in components[1:]:
|