ui: add a debug print right before we start the pager
authorAugie Fackler <augie@google.com>
Mon, 06 Feb 2017 23:55:54 -0500
changeset 30998 75e325ce538e
parent 30997 29a4a8d01bc9
child 30999 334cf948c758
ui: add a debug print right before we start the pager This makes it easier to figure out why a command is getting paginated.
mercurial/ui.py
--- a/mercurial/ui.py	Mon Feb 06 23:42:04 2017 -0500
+++ b/mercurial/ui.py	Mon Feb 06 23:55:54 2017 -0500
@@ -863,6 +863,7 @@
             # interactive, the user didn't say HGPLAIN or
             # HGPLAINEXCEPT=pager, and the user didn't specify --debug.
             return
+        self.debug('starting pager for command %r\n' % command)
 
         # TODO: add a "system defaults" config section so this default
         # of more(1) can be easily replaced with a global