Patchwork [7,of,9,pager,v2] ui: add a debug print right before we start the pager

login
register
mail settings
Submitter Augie Fackler
Date Feb. 16, 2017, 4:59 p.m.
Message ID <935dccd057eb61b98090.1487264356@arthedain.pit.corp.google.com>
Download mbox | patch
Permalink /patch/18554/
State Accepted
Headers show

Comments

Augie Fackler - Feb. 16, 2017, 4:59 p.m.
# HG changeset patch
# User Augie Fackler <augie@google.com>
# Date 1486443354 18000
#      Mon Feb 06 23:55:54 2017 -0500
# Node ID 935dccd057eb61b980901b5c7a806fac9fb55d0f
# Parent  35d0605a6304ad2152603f480c7190839907e4cf
ui: add a debug print right before we start the pager

This makes it easier to figure out why a command is getting paginated.

Patch

diff --git a/mercurial/ui.py b/mercurial/ui.py
--- a/mercurial/ui.py
+++ b/mercurial/ui.py
@@ -868,6 +868,7 @@  class ui(object):
             # 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