##// END OF EJS Templates
config: test priority involving alias and include...
marmoute -
r47360:702bb73d default
parent child Browse files
Show More
@@ -418,6 +418,29 b' setup necessary file'
418 > post-include= value-included
418 > post-include= value-included
419 > EOF
419 > EOF
420
420
421 $ cat > file-C.rc << EOF
422 > %include ./included-alias-C.rc
423 > [ui]
424 > logtemplate = "value-C\n"
425 > EOF
426
427 $ cat > included-alias-C.rc << EOF
428 > [command-templates]
429 > log = "value-included\n"
430 > EOF
431
432
433 $ cat > file-D.rc << EOF
434 > [command-templates]
435 > log = "value-D\n"
436 > %include ./included-alias-D.rc
437 > EOF
438
439 $ cat > included-alias-D.rc << EOF
440 > [ui]
441 > logtemplate = "value-included\n"
442 > EOF
443
421 Simple order checking
444 Simple order checking
422 ---------------------
445 ---------------------
423
446
@@ -462,3 +485,16 b' BROKEN: currently not the case.'
462 $ HGRCPATH="file-A.rc:file-B.rc" hg log -r .
485 $ HGRCPATH="file-A.rc:file-B.rc" hg log -r .
463 value-A (known-bad-output !)
486 value-A (known-bad-output !)
464 value-B (missing-correct-output !)
487 value-B (missing-correct-output !)
488
489 Alias and include
490 -----------------
491
492 The pre/post include priority should also apply when tie-breaking alternatives.
493 See the case above for details about the two config options used.
494
495 $ HGRCPATH="file-C.rc" hg log -r .
496 value-included (known-bad-output !)
497 value-C (missing-correct-output !)
498 $ HGRCPATH="file-D.rc" hg log -r .
499 value-D (known-bad-output !)
500 value-included (missing-correct-output !)
General Comments 0
You need to be logged in to leave comments. Login now