Mercurial > hg
changeset 31047:8aaebe8e47ec
version: enable pager if --verbose is specified
`hg version` output is very short without --verbose, but with
--verbose it tends to scroll off the user's screen.
author | Augie Fackler <augie@google.com> |
---|---|
date | Mon, 06 Feb 2017 23:08:49 -0500 |
parents | f5d27f5442a0 |
children | 23bcfdd76f96 |
files | mercurial/commands.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commands.py Mon Feb 06 23:07:16 2017 -0500 +++ b/mercurial/commands.py Mon Feb 06 23:08:49 2017 -0500 @@ -5415,6 +5415,8 @@ @command('version', [] + formatteropts, norepo=True) def version_(ui, **opts): """output version and copyright information""" + if ui.verbose: + ui.pager('version') fm = ui.formatter("version", opts) fm.startitem() fm.write("ver", _("Mercurial Distributed SCM (version %s)\n"),