Patchwork D1098: releasenotes: add pager support when printing to the ui

login
register
mail settings
Submitter phabricator
Date Oct. 15, 2017, 3:15 p.m.
Message ID <differential-rev-PHID-DREV-jkz6bsxlwqslefpa2ncr-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/24955/
State Superseded
Headers show

Comments

phabricator - Oct. 15, 2017, 3:15 p.m.
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D1098

AFFECTED FILES
  hgext/releasenotes.py

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/hgext/releasenotes.py b/hgext/releasenotes.py
--- a/hgext/releasenotes.py
+++ b/hgext/releasenotes.py
@@ -580,6 +580,7 @@ 
     incoming = parsenotesfromrevisions(repo, sections.names(), revs)
 
     if file_ is None:
+        ui.pager('releasenotes')
         return ui.write(serializenotes(sections, incoming))
 
     try: