marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches.
REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D9915 AFFECTED FILES tests/test-config.t CHANGE DETAILS diff --git a/tests/test-config.t b/tests/test-config.t --- a/tests/test-config.t +++ b/tests/test-config.t @@ -388,3 +388,26 @@ > done $ HGRCPATH=configs hg config section.key 99 + +Configuration priority +====================== + +setup necessary file + + $ cat > file-A.rc << EOF + > [config-test] + > basic = value-A + > EOF + + $ cat > file-B.rc << EOF + > [config-test] + > basic = value-B + > EOF + +Simple order checking +--------------------- + +If file B is read after file A, value from B overwrite value from A. + + $ HGRCPATH="file-A.rc:file-B.rc" hg config config-test.basic + value-B To: marmoute, #hg-reviewers Cc: mercurial-patches, mercurial-devel _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel