[Updated] D9915: config: add a test for priority when includes are involved
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Sun Jan 31 19:46:54 UTC 2021
Closed by commit rHG4ae85340d5eb: config: add a test for priority when includes are involved (authored by marmoute).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D9915?vs=25381&id=25407
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D9915/new/
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, pulkit
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210131/a9413761/attachment-0002.html>
More information about the Mercurial-patches
mailing list