# HG changeset patch # User Augie Fackler # Date 1486440529 18000 # Node ID 8aaebe8e47ec93cdb574c85b981287430790410b # Parent f5d27f5442a0f3ee28cd94f876e8c573b3f820f0 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. diff -r f5d27f5442a0 -r 8aaebe8e47ec mercurial/commands.py --- 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"),