equal
deleted
inserted
replaced
386 $ for i in `$TESTDIR/seq.py 10 99`; do |
386 $ for i in `$TESTDIR/seq.py 10 99`; do |
387 > printf "[section]\nkey=$i" > configs/$i.rc |
387 > printf "[section]\nkey=$i" > configs/$i.rc |
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 |