##// END OF EJS Templates
windows: disable pager when packaged with py2exe...
Matt Harbison -
r49948:30825d15 default draft
parent child Browse files
Show More
@@ -1432,6 +1432,14 b' class ui:'
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
General Comments 0
You need to be logged in to leave comments. Login now