##// END OF EJS Templates
config: add a test for priority when includes are involved...
marmoute -
r47148:4ae85340 default
parent child Browse files
Show More
@@ -388,3 +388,26 b' configs should be read in lexicographica'
388 > done
388 > done
389 $ HGRCPATH=configs hg config section.key
389 $ HGRCPATH=configs hg config section.key
390 99
390 99
391
392 Configuration priority
393 ======================
394
395 setup necessary file
396
397 $ cat > file-A.rc << EOF
398 > [config-test]
399 > basic = value-A
400 > EOF
401
402 $ cat > file-B.rc << EOF
403 > [config-test]
404 > basic = value-B
405 > EOF
406
407 Simple order checking
408 ---------------------
409
410 If file B is read after file A, value from B overwrite value from A.
411
412 $ HGRCPATH="file-A.rc:file-B.rc" hg config config-test.basic
413 value-B
General Comments 0
You need to be logged in to leave comments. Login now