Show More
@@ -1963,6 +1963,14 b' class queue(object):' | |||||
1963 |
|
1963 | |||
1964 | def qrepo(self, create=False): |
|
1964 | def qrepo(self, create=False): | |
1965 | ui = self.baseui.copy() |
|
1965 | ui = self.baseui.copy() | |
|
1966 | # copy back attributes set by ui.pager() | |||
|
1967 | if self.ui.pageractive and not ui.pageractive: | |||
|
1968 | ui.pageractive = self.ui.pageractive | |||
|
1969 | # internal config: ui.formatted | |||
|
1970 | ui.setconfig('ui', 'formatted', | |||
|
1971 | self.ui.config('ui', 'formatted'), 'mqpager') | |||
|
1972 | ui.setconfig('ui', 'interactive', | |||
|
1973 | self.ui.config('ui', 'interactive'), 'mqpager') | |||
1966 | if create or os.path.isdir(self.join(".hg")): |
|
1974 | if create or os.path.isdir(self.join(".hg")): | |
1967 | return hg.repository(ui, path=self.path, create=create) |
|
1975 | return hg.repository(ui, path=self.path, create=create) | |
1968 |
|
1976 |
@@ -194,6 +194,36 b' Pager works with shell aliases.' | |||||
194 | $ hg --config pager.attend-echoa=yes echoa |
|
194 | $ hg --config pager.attend-echoa=yes echoa | |
195 | paged! 'a\n' |
|
195 | paged! 'a\n' | |
196 |
|
196 | |||
|
197 | Pager attributes should be copied to mq repo. Otherwise pager would be started | |||
|
198 | twice and color mode would be lost. | |||
|
199 | ||||
|
200 | $ cat >> $HGRCPATH <<EOF | |||
|
201 | > [extensions] | |||
|
202 | > mq = | |||
|
203 | > EOF | |||
|
204 | $ hg init --mq | |||
|
205 | $ hg qnew foo.patch | |||
|
206 | $ hg qpop | |||
|
207 | popping foo.patch | |||
|
208 | patch queue now empty | |||
|
209 | $ hg ci --mq -m 'commit patches' | |||
|
210 | $ hg log --mq --debug | |||
|
211 | starting pager for command 'extension-via-attend-log' | |||
|
212 | paged! '\x1b[0;33mchangeset: 0:6cc2ded15503e368aaf76b6cc3d12f320c9e3b87\x1b[0m\n' | |||
|
213 | paged! 'tag: tip\n' | |||
|
214 | paged! 'phase: draft\n' | |||
|
215 | paged! 'parent: -1:0000000000000000000000000000000000000000\n' | |||
|
216 | paged! 'parent: -1:0000000000000000000000000000000000000000\n' | |||
|
217 | paged! 'manifest: 0:4980de1ae1b612014d5bcfa9507da84ce8891daa\n' | |||
|
218 | paged! 'user: test\n' | |||
|
219 | paged! 'date: Thu Jan 01 00:00:00 1970 +0000\n' | |||
|
220 | paged! 'files+: .hgignore foo.patch series\n' | |||
|
221 | paged! 'extra: branch=default\n' | |||
|
222 | paged! 'description:\n' | |||
|
223 | paged! 'commit patches\n' | |||
|
224 | paged! '\n' | |||
|
225 | paged! '\n' | |||
|
226 | ||||
197 | Pager works with hg aliases including environment variables. |
|
227 | Pager works with hg aliases including environment variables. | |
198 |
|
228 | |||
199 | $ cat >> $HGRCPATH <<'EOF' |
|
229 | $ cat >> $HGRCPATH <<'EOF' |
General Comments 0
You need to be logged in to leave comments.
Login now