# HG changeset patch # User Pierre-Yves David # Date 2017-02-28 19:12:08 # Node ID 53a60e95f15417058f166dd841daefd289e962bd # Parent 8fc55bbd2235fca1986b2fbd834c4bf8d0aa955f pager: drop the 'color' dependant code The 'color' implementation is in core and no longer wrap '_runcommand'. We drop the extra complexity. diff --git a/hgext/pager.py b/hgext/pager.py --- a/hgext/pager.py +++ b/hgext/pager.py @@ -66,12 +66,7 @@ def uisetup(ui): 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',