# HG changeset patch # User Gregory Szorc # Date 1493100704 25200 # Node ID 04629b2da72c5a6604d9ca956759999fccd4f18d # Parent 05cdd5678c6bf80edc271c279c86ccaea8d355c2 tests: test that abbreviated command alias is also paged Explicit test coverage is good. diff -r 05cdd5678c6b -r 04629b2da72c tests/test-pager.t --- a/tests/test-pager.t Mon Apr 24 23:10:43 2017 -0700 +++ b/tests/test-pager.t Mon Apr 24 23:11:44 2017 -0700 @@ -84,6 +84,16 @@ paged! 'summary: modify a 9\n' paged! '\n' +Abbreviated command alias should also be paged + + $ hg hist -l 1 + paged! 'changeset: 10:46106edeeb38\n' + paged! 'tag: tip\n' + paged! 'user: test\n' + paged! 'date: Thu Jan 01 00:00:00 1970 +0000\n' + paged! 'summary: modify a 10\n' + paged! '\n' + Pager should not start if stdout is not a tty. $ hg log -l1 -q --config ui.formatted=False