Patchwork [5,of,6,STABLE] tests: demonstrate that pager.attend-<abbreviated> doesn't work

login
register
mail settings
Submitter Gregory Szorc
Date April 25, 2017, 7:22 a.m.
Message ID <3dd8a2d6584eb02016a9.1493104973@ubuntu-vm-main>
Download mbox | patch
Permalink /patch/20293/
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 1493104743 25200
#      Tue Apr 25 00:19:03 2017 -0700
# Branch stable
# Node ID 3dd8a2d6584eb02016a9db1b06eb69ff8f054e2d
# Parent  580f66e7358e2857cb2eced8dcf318736aab8f05
tests: demonstrate that pager.attend-<abbreviated> doesn't work

A pager.attend-* value that isn't a full command or alias name doesn't
work. We add explicit test coverage of this to demonstrate a change
of behavior with the next commit.

Patch

diff --git a/tests/test-pager.t b/tests/test-pager.t
--- a/tests/test-pager.t
+++ b/tests/test-pager.t
@@ -94,6 +94,14 @@  Abbreviated command alias should also be
   paged! 'summary:     modify a 10\n'
   paged! '\n'
 
+Attend for an abbreviated command does not work
+
+  $ hg --config pager.attend-ident=true ident
+  46106edeeb38 tip
+
+  $ hg --config extensions.pager= --config pager.attend-ident=true ident
+  46106edeeb38 tip
+
 Pager should not start if stdout is not a tty.
 
   $ hg log -l1 -q --config ui.formatted=False