# HG changeset patch # User Augie Fackler # Date 2017-02-07 04:01:42 # Node ID 270ab9d2ffbba0d5f6c41156c8b27926c36ee4c8 # Parent 861b070d92daafd4a3b0b752fa36e95e3c69af6b config: activate pager if not starting an editor This demonstrates the power of the non-attend-based pager API. diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -1792,7 +1792,7 @@ def config(ui, repo, *values, **opts): ui.system("%s \"%s\"" % (editor, f), onerr=error.Abort, errprefix=_("edit failed")) return - + ui.pager('config') fm = ui.formatter('config', opts) for f in scmutil.rcpath(): ui.debug('read config from: %s\n' % f)