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

login
register
mail settings
Submitter phabricator
Date Oct. 16, 2017, 1:34 p.m.
Message ID <2c72cc09ab1336b9ff9a76793d3c7e12@localhost.localdomain>
Download mbox | patch
Permalink /patch/24976/
State Not Applicable
Headers show

Comments

phabricator - Oct. 16, 2017, 1:34 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG25b5787e8dde: releasenotes: add pager support when printing to the ui (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1098?vs=2788&id=2808

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

AFFECTED FILES
  hgext/releasenotes.py

CHANGE DETAILS




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

Patch

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