Show More
@@ -1488,8 +1488,11 b' class queue(object):' | |||||
1488 | return True |
|
1488 | return True | |
1489 |
|
1489 | |||
1490 | def qrepo(self, create=False): |
|
1490 | def qrepo(self, create=False): | |
|
1491 | ui = self.ui.copy() | |||
|
1492 | ui.setconfig('paths', 'default', '', overlay=False) | |||
|
1493 | ui.setconfig('paths', 'default-push', '', overlay=False) | |||
1491 | if create or os.path.isdir(self.join(".hg")): |
|
1494 | if create or os.path.isdir(self.join(".hg")): | |
1492 |
return hg.repository( |
|
1495 | return hg.repository(ui, path=self.path, create=create) | |
1493 |
|
1496 | |||
1494 | def restore(self, repo, rev, delete=None, qupdate=None): |
|
1497 | def restore(self, repo, rev, delete=None, qupdate=None): | |
1495 | desc = repo[rev].description().strip() |
|
1498 | desc = repo[rev].description().strip() |
@@ -142,6 +142,9 b' List of filters:' | |||||
142 |
|
142 | |||
143 | :shortdate: Date. Returns a date like "2006-09-18". |
|
143 | :shortdate: Date. Returns a date like "2006-09-18". | |
144 |
|
144 | |||
|
145 | :stringify: Any type. Turns the value into text by converting values into | |||
|
146 | text and concatenating them. | |||
|
147 | ||||
145 | :strip: Any text. Strips all leading and trailing whitespace. |
|
148 | :strip: Any text. Strips all leading and trailing whitespace. | |
146 |
|
149 | |||
147 | :tabindent: Any text. Returns the text, with every line except the |
|
150 | :tabindent: Any text. Returns the text, with every line except the |
@@ -121,9 +121,11 b' class ui(object):' | |||||
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): |
General Comments 0
You need to be logged in to leave comments.
Login now