mercurial/ui.py
changeset 49075 7afa96d3b484
parent 48946 642e31cb55f0
child 49306 2e726c934fcd
equal deleted inserted replaced
49074:4ba27acdea63 49075:7afa96d3b484
  1430             # We only want to paginate if the ui appears to be
  1430             # We only want to paginate if the ui appears to be
  1431             # interactive, the user didn't say HGPLAIN or
  1431             # interactive, the user didn't say HGPLAIN or
  1432             # HGPLAINEXCEPT=pager, and the user didn't specify --debug.
  1432             # HGPLAINEXCEPT=pager, and the user didn't specify --debug.
  1433             return
  1433             return
  1434 
  1434 
       
  1435         # py2exe doesn't appear to be able to use legacy I/O, and nothing is
       
  1436         # output to the pager for paged commands.  Piping to `more` in cmd.exe
       
  1437         # works, but is easy to forget.  Just disable pager for py2exe, but
       
  1438         # leave it working for pyoxidizer and exewrapper builds.
       
  1439         if pycompat.iswindows and getattr(sys, "frozen", None) == "console_exe":
       
  1440             self.debug(b"pager is unavailable with py2exe packaging\n")
       
  1441             return
       
  1442 
  1435         pagercmd = self.config(b'pager', b'pager', rcutil.fallbackpager)
  1443         pagercmd = self.config(b'pager', b'pager', rcutil.fallbackpager)
  1436         if not pagercmd:
  1444         if not pagercmd:
  1437             return
  1445             return
  1438 
  1446 
  1439         pagerenv = {}
  1447         pagerenv = {}