journal: use pager
authorJun Wu <quark@fb.com>
Wed, 20 Dec 2017 16:44:35 -0800
changeset 35462 6f754b0fe54e
parent 35461 3a119a423953
child 35463 ef7e667a4f7b
journal: use pager journal output is long and should use a pager. Differential Revision: https://phab.mercurial-scm.org/D1740
hgext/journal.py
--- a/hgext/journal.py	Wed Dec 20 11:35:38 2017 -0800
+++ b/hgext/journal.py	Wed Dec 20 16:44:35 2017 -0800
@@ -480,6 +480,7 @@
 
     limit = cmdutil.loglimit(opts)
     entry = None
+    ui.pager('journal')
     for count, entry in enumerate(repo.journal.filtered(name=name)):
         if count == limit:
             break