# HG changeset patch # User Jun Wu # Date 2017-01-09 22:59:49 # Node ID d3e2d39b97ea1f6654e50627a07fbd72d1a647a3 # Parent fde9692a02c0eee2d75fb933162536dfce8c8911 pager: do not special case chg Since chg has its own _runpager implementation, it's no longer necessary to special-case chg in the pager extension. This will effectively enable the new chg pager code path that runs inside runcommand. diff --git a/hgext/pager.py b/hgext/pager.py --- a/hgext/pager.py +++ b/hgext/pager.py @@ -124,11 +124,6 @@ def uisetup(ui): ui.__class__ = pagerui - # chg has its own pager implementation - argv = sys.argv[:] - if 'chgunix' in dispatch._earlygetopt(['--cmdserver'], argv): - return - def pagecmd(orig, ui, options, cmd, cmdfunc): p = ui.config("pager", "pager", encoding.environ.get("PAGER")) usepager = False