Show More
@@ -228,6 +228,9 b' class ui(object):' | |||||
228 | root = root or os.getcwd() |
|
228 | root = root or os.getcwd() | |
229 | for c in self._tcfg, self._ucfg, self._ocfg: |
|
229 | for c in self._tcfg, self._ucfg, self._ocfg: | |
230 | for n, p in c.items('paths'): |
|
230 | for n, p in c.items('paths'): | |
|
231 | # Ignore sub-options. | |||
|
232 | if ':' in n: | |||
|
233 | continue | |||
231 | if not p: |
|
234 | if not p: | |
232 | continue |
|
235 | continue | |
233 | if '%%' in p: |
|
236 | if '%%' in p: |
@@ -90,3 +90,15 b' 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 |
General Comments 0
You need to be logged in to leave comments.
Login now