diff --git a/tests/test-config.t b/tests/test-config.t --- a/tests/test-config.t +++ b/tests/test-config.t @@ -400,11 +400,15 @@ > pre-include= value-A > %include ./included.rc > post-include= value-A + > [command-templates] + > log = "value-A\n" > EOF $ cat > file-B.rc << EOF > [config-test] > basic = value-B + > [ui] + > logtemplate = "value-B\n" > EOF @@ -437,3 +441,22 @@ $ HGRCPATH="file-A.rc:file-B.rc" hg config config-test.basic --config config-test.basic=value-CLI value-CLI + +Alias ordering +-------------- + +The official config is now `command-templates.log`, the historical +`ui.logtemplate` is a valid alternative for it. + +When both are defined, the value for any of them defined within the highest +level config source (read later) should win. + +BROKEN: currently not the case. + + $ HGRCPATH="file-A.rc" hg log -r . + value-A + $ HGRCPATH="file-B.rc" hg log -r . + value-B + $ HGRCPATH="file-A.rc:file-B.rc" hg log -r . + value-A (known-bad-output !) + value-B (missing-correct-output !)