Show More
@@ -1487,8 +1487,11 b' class queue(object):' | |||
|
1487 | 1487 | return True |
|
1488 | 1488 | |
|
1489 | 1489 | def qrepo(self, create=False): |
|
1490 | ui = self.ui.copy() | |
|
1491 | ui.setconfig('paths', 'default', '', overlay=False) | |
|
1492 | ui.setconfig('paths', 'default-push', '', overlay=False) | |
|
1490 | 1493 | if create or os.path.isdir(self.join(".hg")): |
|
1491 |
return hg.repository( |
|
|
1494 | return hg.repository(ui, path=self.path, create=create) | |
|
1492 | 1495 | |
|
1493 | 1496 | def restore(self, repo, rev, delete=None, qupdate=None): |
|
1494 | 1497 | desc = repo[rev].description().strip() |
@@ -121,9 +121,11 b' class ui(object):' | |||
|
121 | 121 | self._trustusers.update(self.configlist('trusted', 'users')) |
|
122 | 122 | self._trustgroups.update(self.configlist('trusted', 'groups')) |
|
123 | 123 | |
|
124 | def setconfig(self, section, name, value): | |
|
125 | for cfg in (self._ocfg, self._tcfg, self._ucfg): | |
|
126 | cfg.set(section, name, value) | |
|
124 | def setconfig(self, section, name, value, overlay=True): | |
|
125 | if overlay: | |
|
126 | self._ocfg.set(section, name, value) | |
|
127 | self._tcfg.set(section, name, value) | |
|
128 | self._ucfg.set(section, name, value) | |
|
127 | 129 | self.fixconfig() |
|
128 | 130 | |
|
129 | 131 | def _data(self, untrusted): |
General Comments 0
You need to be logged in to leave comments.
Login now