equal
deleted
inserted
replaced
151 setattr(ui, 'pageractive', usepager) |
151 setattr(ui, 'pageractive', usepager) |
152 |
152 |
153 if usepager: |
153 if usepager: |
154 ui.setconfig('ui', 'formatted', ui.formatted(), 'pager') |
154 ui.setconfig('ui', 'formatted', ui.formatted(), 'pager') |
155 ui.setconfig('ui', 'interactive', False, 'pager') |
155 ui.setconfig('ui', 'interactive', False, 'pager') |
156 if util.safehasattr(signal, "SIGPIPE"): |
|
157 signal.signal(signal.SIGPIPE, signal.SIG_DFL) |
|
158 ui._runpager(p) |
156 ui._runpager(p) |
159 return orig(ui, options, cmd, cmdfunc) |
157 return orig(ui, options, cmd, cmdfunc) |
160 |
158 |
161 # Wrap dispatch._runcommand after color is loaded so color can see |
159 # Wrap dispatch._runcommand after color is loaded so color can see |
162 # ui.pageractive. Otherwise, if we loaded first, color's wrapped |
160 # ui.pageractive. Otherwise, if we loaded first, color's wrapped |