Mercurial > hg-stable
comparison tests/test-config.t @ 29412:b62bce819d0c
ui: don't fixup [paths] sub-options
As part of developing a subsequent patch I discovered that sub-option
values like "." were getting converted to paths. This is because the
[paths] section is treated specially during config loading.
This patch prevents post-processing sub-options from the [paths]
section.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 25 Jun 2016 18:35:14 -0700 |
parents | bbe56e07e07a |
children | 80fef5251099 |
comparison
equal
deleted
inserted
replaced
29411:e1778b9c8d53 | 29412:b62bce819d0c |
---|---|
88 | 88 |
89 Test exit code when no config matches | 89 Test exit code when no config matches |
90 | 90 |
91 $ hg config Section.idontexist | 91 $ hg config Section.idontexist |
92 [1] | 92 [1] |
93 | |
94 sub-options in [paths] aren't expanded | |
95 | |
96 $ cat > .hg/hgrc << EOF | |
97 > [paths] | |
98 > foo = ~/foo | |
99 > foo:suboption = ~/foo | |
100 > EOF | |
101 | |
102 $ hg showconfig paths | |
103 paths.foo:suboption=~/foo | |
104 paths.foo=$TESTTMP/foo |