pager: do not special case chg
authorJun Wu <quark@fb.com>
Tue, 10 Jan 2017 06:59:49 +0800
changeset 30742 d3e2d39b97ea
parent 30741 fde9692a02c0
child 30743 2df983125d37
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.
hgext/pager.py
--- 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