releasenotes: add pager support when printing to the ui
authorPulkit Goyal <7895pulkit@gmail.com>
Sun, 15 Oct 2017 20:32:10 +0530
changeset 34736 25b5787e8dde
parent 34735 330d0b582ab3
child 34737 0c06875e7755
releasenotes: add pager support when printing to the ui Differential Revision: https://phab.mercurial-scm.org/D1098
hgext/releasenotes.py
--- a/hgext/releasenotes.py	Fri Oct 13 22:08:55 2017 +0200
+++ b/hgext/releasenotes.py	Sun Oct 15 20:32:10 2017 +0530
@@ -577,6 +577,7 @@
     incoming = parsenotesfromrevisions(repo, sections.names(), revs)
 
     if file_ is None:
+        ui.pager('releasenotes')
         return ui.write(serializenotes(sections, incoming))
 
     try: