Show More
@@ -93,7 +93,8 b' class config(object):' | |||
|
93 | 93 | if section not in self: |
|
94 | 94 | self._data[section] = sortdict() |
|
95 | 95 | self._data[section][item] = value |
|
96 | self._source[(section, item)] = source | |
|
96 | if source: | |
|
97 | self._source[(section, item)] = source | |
|
97 | 98 | |
|
98 | 99 | def restore(self, data): |
|
99 | 100 | """restore data returned by self.backup""" |
@@ -201,3 +201,14 b' plain mode with exceptions' | |||
|
201 | 201 | --verbose: ui.verbose=False |
|
202 | 202 | --debug: ui.debug=True |
|
203 | 203 | --quiet: ui.quiet=False |
|
204 | ||
|
205 | source of paths is not mangled | |
|
206 | ||
|
207 | $ cat >> $HGRCPATH <<EOF | |
|
208 | > [paths] | |
|
209 | > foo = bar | |
|
210 | > EOF | |
|
211 | $ hg showconfig --debug paths | |
|
212 | plain: True | |
|
213 | read config from: $TESTTMP/hgrc | |
|
214 | $TESTTMP/hgrc:17: paths.foo=$TESTTMP/bar |
General Comments 0
You need to be logged in to leave comments.
Login now