[PATCH] hglib: make sure configs can be passed to clone command
Mathias De Mare
mathias.de_mare at nokia.com
Wed Mar 8 14:23:36 UTC 2023
# HG changeset patch
# User Mathias De Mare <mathias.de_mare at nokia.com>
# Date 1646834891 -3600
# Wed Mar 09 15:08:11 2022 +0100
# Node ID e3e9e403927565cb9440576065274688e26ab78f
# Parent 1e7a64588ab0f427dcf49ce5e691e36fd568d27a
hglib: make sure configs can be passed to clone command
Differential Revision: https://phab.mercurial-scm.org/D12360
diff --git a/.hgignore b/.hgignore
old mode 100644
new mode 100755
diff --git a/.hgsigs b/.hgsigs
old mode 100644
new mode 100755
diff --git a/.hgtags b/.hgtags
old mode 100644
new mode 100755
diff --git a/LICENSE b/LICENSE
old mode 100644
new mode 100755
diff --git a/Makefile b/Makefile
old mode 100644
new mode 100755
diff --git a/README b/README
old mode 100644
new mode 100755
diff --git a/examples/stats.py b/examples/stats.py
old mode 100644
new mode 100755
diff --git a/hglib/__init__.py b/hglib/__init__.py
old mode 100644
new mode 100755
--- a/hglib/__init__.py
+++ b/hglib/__init__.py
@@ -31,6 +31,12 @@ def clone(source=None, dest=None, noupda
pull=pull, uncompressed=uncompressed,
e=ssh, remotecmd=remotecmd, insecure=insecure)
+ # insert configs at the front so they don't interfere with positional args
+ cmdconfigs = []
+ for config in configs:
+ cmdconfigs.extend(["--config", config])
+ args = cmdconfigs + args
+
args.insert(0, HGPATH)
proc = util.popen(args)
out, err = proc.communicate()
diff --git a/hglib/client.py b/hglib/client.py
old mode 100644
new mode 100755
diff --git a/hglib/context.py b/hglib/context.py
old mode 100644
new mode 100755
diff --git a/hglib/error.py b/hglib/error.py
old mode 100644
new mode 100755
diff --git a/hglib/merge.py b/hglib/merge.py
old mode 100644
new mode 100755
diff --git a/hglib/templates.py b/hglib/templates.py
old mode 100644
new mode 100755
diff --git a/hglib/util.py b/hglib/util.py
old mode 100644
new mode 100755
diff --git a/setup.py b/setup.py
old mode 100644
new mode 100755
diff --git a/test.py b/test.py
old mode 100644
new mode 100755
diff --git a/tests/__init__.py b/tests/__init__.py
old mode 100644
new mode 100755
diff --git a/tests/common.py b/tests/common.py
old mode 100644
new mode 100755
diff --git a/tests/test-annotate.py b/tests/test-annotate.py
old mode 100644
new mode 100755
diff --git a/tests/test-bookmarks.py b/tests/test-bookmarks.py
old mode 100644
new mode 100755
diff --git a/tests/test-branch.py b/tests/test-branch.py
old mode 100644
new mode 100755
diff --git a/tests/test-branches.py b/tests/test-branches.py
old mode 100644
new mode 100755
diff --git a/tests/test-bundle.py b/tests/test-bundle.py
old mode 100644
new mode 100755
diff --git a/tests/test-clone.py b/tests/test-clone.py
old mode 100644
new mode 100755
diff --git a/tests/test-commit.py b/tests/test-commit.py
old mode 100644
new mode 100755
diff --git a/tests/test-config.py b/tests/test-config.py
old mode 100644
new mode 100755
diff --git a/tests/test-context.py b/tests/test-context.py
old mode 100644
new mode 100755
diff --git a/tests/test-copy.py b/tests/test-copy.py
old mode 100644
new mode 100755
diff --git a/tests/test-diff.py b/tests/test-diff.py
old mode 100644
new mode 100755
diff --git a/tests/test-encoding.py b/tests/test-encoding.py
old mode 100644
new mode 100755
diff --git a/tests/test-forget.py b/tests/test-forget.py
old mode 100644
new mode 100755
diff --git a/tests/test-grep.py b/tests/test-grep.py
old mode 100644
new mode 100755
diff --git a/tests/test-heads.py b/tests/test-heads.py
old mode 100644
new mode 100755
diff --git a/tests/test-hglib.py b/tests/test-hglib.py
old mode 100644
new mode 100755
diff --git a/tests/test-hidden.py b/tests/test-hidden.py
old mode 100644
new mode 100755
diff --git a/tests/test-import.py b/tests/test-import.py
old mode 100644
new mode 100755
diff --git a/tests/test-init.py b/tests/test-init.py
old mode 100644
new mode 100755
diff --git a/tests/test-log.py b/tests/test-log.py
old mode 100644
new mode 100755
diff --git a/tests/test-manifest.py b/tests/test-manifest.py
old mode 100644
new mode 100755
diff --git a/tests/test-merge.py b/tests/test-merge.py
old mode 100644
new mode 100755
diff --git a/tests/test-move.py b/tests/test-move.py
old mode 100644
new mode 100755
diff --git a/tests/test-outgoing-incoming.py b/tests/test-outgoing-incoming.py
old mode 100644
new mode 100755
diff --git a/tests/test-parents.py b/tests/test-parents.py
old mode 100644
new mode 100755
diff --git a/tests/test-paths.py b/tests/test-paths.py
old mode 100644
new mode 100755
diff --git a/tests/test-phase.py b/tests/test-phase.py
old mode 100644
new mode 100755
diff --git a/tests/test-pull.py b/tests/test-pull.py
old mode 100644
new mode 100755
diff --git a/tests/test-push.py b/tests/test-push.py
old mode 100644
new mode 100755
diff --git a/tests/test-remove.py b/tests/test-remove.py
old mode 100644
new mode 100755
diff --git a/tests/test-resolve.py b/tests/test-resolve.py
old mode 100644
new mode 100755
diff --git a/tests/test-status.py b/tests/test-status.py
old mode 100644
new mode 100755
diff --git a/tests/test-summary.py b/tests/test-summary.py
old mode 100644
new mode 100755
diff --git a/tests/test-tags.py b/tests/test-tags.py
old mode 100644
new mode 100755
diff --git a/tests/test-update.py b/tests/test-update.py
old mode 100644
new mode 100755
diff --git a/tests/with_hg.py b/tests/with_hg.py
old mode 100644
new mode 100755
diff --git a/tox.ini b/tox.ini
old mode 100644
new mode 100755
More information about the Mercurial-devel
mailing list