changeset 30742:d3e2d39b97ea

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.
author Jun Wu <quark@fb.com>
date Tue, 10 Jan 2017 06:59:49 +0800
parents fde9692a02c0
children 2df983125d37
files hgext/pager.py
diffstat 1 files changed, 0 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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