config: test priority involving alias and cli
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 29 Jan 2021 13:07:00 +0100
changeset 46617 87f8b3add56b
parent 46616 702bb73d7330
child 46618 dde86beca388
config: test priority involving alias and cli Differential Revision: https://phab.mercurial-scm.org/D9920
tests/test-config.t
--- a/tests/test-config.t	Fri Jan 29 12:03:29 2021 +0100
+++ b/tests/test-config.t	Fri Jan 29 13:07:00 2021 +0100
@@ -498,3 +498,10 @@
   $ HGRCPATH="file-D.rc" hg log -r .
   value-D (known-bad-output !)
   value-included (missing-correct-output !)
+
+command line override
+---------------------
+
+  $ HGRCPATH="file-A.rc:file-B.rc" hg log -r . --config ui.logtemplate="value-CLI\n"
+  value-A (known-bad-output !)
+  value-CLI (missing-correct-output !)