comparison mercurial/commands.py @ 31034:270ab9d2ffbb

config: activate pager if not starting an editor This demonstrates the power of the non-attend-based pager API.
author Augie Fackler <augie@google.com>
date Mon, 06 Feb 2017 23:01:42 -0500
parents 1cec1d863008
children 8c176811b735
comparison
equal deleted inserted replaced
31033:861b070d92da 31034:270ab9d2ffbb
1790 1790
1791 editor = ui.geteditor() 1791 editor = ui.geteditor()
1792 ui.system("%s \"%s\"" % (editor, f), 1792 ui.system("%s \"%s\"" % (editor, f),
1793 onerr=error.Abort, errprefix=_("edit failed")) 1793 onerr=error.Abort, errprefix=_("edit failed"))
1794 return 1794 return
1795 1795 ui.pager('config')
1796 fm = ui.formatter('config', opts) 1796 fm = ui.formatter('config', opts)
1797 for f in scmutil.rcpath(): 1797 for f in scmutil.rcpath():
1798 ui.debug('read config from: %s\n' % f) 1798 ui.debug('read config from: %s\n' % f)
1799 untrusted = bool(opts.get('untrusted')) 1799 untrusted = bool(opts.get('untrusted'))
1800 if values: 1800 if values: