Mercurial > hg
changeset 31122:53a60e95f154
pager: drop the 'color' dependant code
The 'color' implementation is in core and no longer wrap '_runcommand'. We drop
the extra complexity.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Tue, 28 Feb 2017 20:12:08 +0100 |
parents | 8fc55bbd2235 |
children | df0a0734304a |
files | hgext/pager.py |
diffstat | 1 files changed, 1 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/pager.py Sat Feb 25 19:43:14 2017 +0100 +++ b/hgext/pager.py Tue Feb 28 20:12:08 2017 +0100 @@ -66,12 +66,7 @@ ui.pager('extension-via-attend-' + cmd) return orig(ui, options, cmd, cmdfunc) - # Wrap dispatch._runcommand after color is loaded so color can see - # ui.pageractive. Otherwise, if we loaded first, color's wrapped - # dispatch._runcommand would run without having access to ui.pageractive. - def afterloaded(loaded): - extensions.wrapfunction(dispatch, '_runcommand', pagecmd) - extensions.afterloaded('color', afterloaded) + extensions.wrapfunction(dispatch, '_runcommand', pagecmd) attended = [ 'the-default-attend-list-is-now-empty-but-that-breaks-the-extension',