##// END OF EJS Templates
config: test priority involving alias...
marmoute -
r47359:377689cc default
parent child Browse files
Show More
@@ -400,11 +400,15 b' setup necessary file'
400 400 > pre-include= value-A
401 401 > %include ./included.rc
402 402 > post-include= value-A
403 > [command-templates]
404 > log = "value-A\n"
403 405 > EOF
404 406
405 407 $ cat > file-B.rc << EOF
406 408 > [config-test]
407 409 > basic = value-B
410 > [ui]
411 > logtemplate = "value-B\n"
408 412 > EOF
409 413
410 414
@@ -437,3 +441,24 b' command line override'
437 441
438 442 $ HGRCPATH="file-A.rc:file-B.rc" hg config config-test.basic --config config-test.basic=value-CLI
439 443 value-CLI
444
445 Alias ordering
446 --------------
447
448 The official config is now `command-templates.log`, the historical
449 `ui.logtemplate` is a valid alternative for it.
450
451 When both are defined, The config value read the last "win", this should keep
452 being true if the config have other alias. In other word, the config value read
453 earlier will be considered "lower level" and the config read later would be
454 considered "higher level". And higher level values wins.
455
456 BROKEN: currently not the case.
457
458 $ HGRCPATH="file-A.rc" hg log -r .
459 value-A
460 $ HGRCPATH="file-B.rc" hg log -r .
461 value-B
462 $ HGRCPATH="file-A.rc:file-B.rc" hg log -r .
463 value-A (known-bad-output !)
464 value-B (missing-correct-output !)
General Comments 0
You need to be logged in to leave comments. Login now