Show More
@@ -1,3 +1,17 b'' | |||
|
1 | Windows needs ';' as a file separator in an environment variable, and MSYS | |
|
2 | doesn't automatically convert it in every case. | |
|
3 | ||
|
4 | #if windows | |
|
5 | $ path_list_var() { | |
|
6 | > echo $1 | sed 's/:/;/' | |
|
7 | > } | |
|
8 | #else | |
|
9 | $ path_list_var() { | |
|
10 | > echo $1 | |
|
11 | > } | |
|
12 | #endif | |
|
13 | ||
|
14 | ||
|
1 | 15 | hide outer repo |
|
2 | 16 | $ hg init |
|
3 | 17 | |
@@ -446,7 +460,7 b' Simple order checking' | |||
|
446 | 460 | |
|
447 | 461 | If file B is read after file A, value from B overwrite value from A. |
|
448 | 462 | |
|
449 | $ HGRCPATH="file-A.rc:file-B.rc" hg config config-test.basic | |
|
463 | $ HGRCPATH=`path_list_var "file-A.rc:file-B.rc"` hg config config-test.basic | |
|
450 | 464 | value-B |
|
451 | 465 | |
|
452 | 466 | Ordering from include |
@@ -462,7 +476,7 b' value from an include overwrite value de' | |||
|
462 | 476 | command line override |
|
463 | 477 | --------------------- |
|
464 | 478 | |
|
465 | $ HGRCPATH="file-A.rc:file-B.rc" hg config config-test.basic --config config-test.basic=value-CLI | |
|
479 | $ HGRCPATH=`path_list_var "file-A.rc:file-B.rc"` hg config config-test.basic --config config-test.basic=value-CLI | |
|
466 | 480 | value-CLI |
|
467 | 481 | |
|
468 | 482 | Alias ordering |
@@ -480,7 +494,7 b' considered "higher level". And higher le' | |||
|
480 | 494 | value-A |
|
481 | 495 | $ HGRCPATH="file-B.rc" hg log -r . |
|
482 | 496 | value-B |
|
483 | $ HGRCPATH="file-A.rc:file-B.rc" hg log -r . | |
|
497 | $ HGRCPATH=`path_list_var "file-A.rc:file-B.rc"` hg log -r . | |
|
484 | 498 | value-B |
|
485 | 499 | |
|
486 | 500 | Alias and include |
@@ -497,5 +511,5 b' See the case above for details about the' | |||
|
497 | 511 | command line override |
|
498 | 512 | --------------------- |
|
499 | 513 | |
|
500 | $ HGRCPATH="file-A.rc:file-B.rc" hg log -r . --config ui.logtemplate="value-CLI\n" | |
|
514 | $ HGRCPATH=`path_list_var "file-A.rc:file-B.rc"` hg log -r . --config ui.logtemplate="value-CLI\n" | |
|
501 | 515 | value-CLI |
General Comments 0
You need to be logged in to leave comments.
Login now