[PATCH 7 of 9 pager v2] ui: add a debug print right before we start the pager
Augie Fackler
raf at durin42.com
Thu Feb 16 11:59:16 EST 2017
# HG changeset patch
# User Augie Fackler <augie at 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.
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
More information about the Mercurial-devel
mailing list