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.
--- a/hgext/pager.py Tue Jan 10 06:59:39 2017 +0800
+++ b/hgext/pager.py Tue Jan 10 06:59:49 2017 +0800
@@ -124,11 +124,6 @@
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