Mercurial > hg
comparison mercurial/ui.py @ 11965:77f1f206e135 stable
mq: don't inherit default and default-push paths with --mq (issue2333)
Configuration from the outer repo is inherited to the patches repo when --mq is
used.
In case the patches repo only has paths.default configured but the outer repo
has paths.default-push then the inherited default-push will win. Very
confusing.
Inheriting the default paths is however wrong in all sane cases, so now we
explicitly remove them.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Wed, 18 Aug 2010 02:43:45 +0200 |
parents | 76454cbc11e4 |
children | fca15617721c |
comparison
equal
deleted
inserted
replaced
11960:df95b31bbdd7 | 11965:77f1f206e135 |
---|---|
119 | 119 |
120 # update trust information | 120 # update trust information |
121 self._trustusers.update(self.configlist('trusted', 'users')) | 121 self._trustusers.update(self.configlist('trusted', 'users')) |
122 self._trustgroups.update(self.configlist('trusted', 'groups')) | 122 self._trustgroups.update(self.configlist('trusted', 'groups')) |
123 | 123 |
124 def setconfig(self, section, name, value): | 124 def setconfig(self, section, name, value, overlay=True): |
125 for cfg in (self._ocfg, self._tcfg, self._ucfg): | 125 if overlay: |
126 cfg.set(section, name, value) | 126 self._ocfg.set(section, name, value) |
127 self._tcfg.set(section, name, value) | |
128 self._ucfg.set(section, name, value) | |
127 self.fixconfig() | 129 self.fixconfig() |
128 | 130 |
129 def _data(self, untrusted): | 131 def _data(self, untrusted): |
130 return untrusted and self._ucfg or self._tcfg | 132 return untrusted and self._ucfg or self._tcfg |
131 | 133 |