changeset 46422:821775843caf

config: test priority involving the command line Differential Revision: https://phab.mercurial-scm.org/D9917
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 29 Jan 2021 13:03:50 +0100
parents 9d49ae51aa56
children 271dfcb98544
files tests/test-config.t
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-config.t	Fri Jan 29 11:50:33 2021 +0100
+++ b/tests/test-config.t	Fri Jan 29 13:03:50 2021 +0100
@@ -431,3 +431,9 @@
   value-included
   $ HGRCPATH="file-A.rc" hg config config-test.post-include
   value-A
+
+command line override
+---------------------
+
+  $ HGRCPATH="file-A.rc:file-B.rc" hg config config-test.basic --config config-test.basic=value-CLI
+  value-CLI