Patchwork [4,of,6,STABLE] tests: test that abbreviated command alias is also paged

login
register
mail settings
Submitter Gregory Szorc
Date April 25, 2017, 7:22 a.m.
Message ID <580f66e7358e2857cb2e.1493104972@ubuntu-vm-main>
Download mbox | patch
Permalink /patch/20294/
State Deferred
Headers show

Comments

Gregory Szorc - April 25, 2017, 7:22 a.m.
# HG changeset patch
# User Gregory Szorc <gregory.szorc@gmail.com>
# Date 1493100704 25200
#      Mon Apr 24 23:11:44 2017 -0700
# Branch stable
# Node ID 580f66e7358e2857cb2eced8dcf318736aab8f05
# Parent  2e90214849bd824f776fdeb94d82331d31ac0feb
tests: test that abbreviated command alias is also paged

Explicit test coverage is good.

Patch

diff --git a/tests/test-pager.t b/tests/test-pager.t
--- a/tests/test-pager.t
+++ b/tests/test-pager.t
@@ -84,6 +84,16 @@  Command aliases should have same behavio
   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