##// END OF EJS Templates
config: don't set source when no source is specified - don't overwrite with ''...
Mads Kiilerich -
r20789:d19c9bdb default
parent child Browse files
Show More
@@ -93,6 +93,7 b' class config(object):'
93 if section not in self:
93 if section not in self:
94 self._data[section] = sortdict()
94 self._data[section] = sortdict()
95 self._data[section][item] = value
95 self._data[section][item] = value
96 if source:
96 self._source[(section, item)] = source
97 self._source[(section, item)] = source
97
98
98 def restore(self, data):
99 def restore(self, data):
@@ -201,3 +201,14 b' plain mode with exceptions'
201 --verbose: ui.verbose=False
201 --verbose: ui.verbose=False
202 --debug: ui.debug=True
202 --debug: ui.debug=True
203 --quiet: ui.quiet=False
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