config: test priority involving the command line
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 29 Jan 2021 13:03:50 +0100
changeset 46422 821775843caf
parent 46421 9d49ae51aa56
child 46423 271dfcb98544
config: test priority involving the command line Differential Revision: https://phab.mercurial-scm.org/D9917
tests/test-config.t
--- 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