# HG changeset patch # User Augie Fackler # Date 2017-02-07 02:15:35 # Node ID 65a3b4d67a65e75bfdf1659e50ecd36aa84663a6 # Parent 354020079723e02ad6db68f58ef26eb7ebd005a8 pager: add a test of --pager=no functionality I'm about to upend the pager universe, but I would like to not regress anything. diff --git a/tests/test-pager.t b/tests/test-pager.t --- a/tests/test-pager.t +++ b/tests/test-pager.t @@ -207,6 +207,11 @@ Pager works with hg aliases including en $ A=2 hg --config pager.attend-printa=yes printa paged! '2\n' +Something that's explicitly attended is still not paginated if the +pager is globally set to off using a flag: + $ A=2 hg --config pager.attend-printa=yes printa --pager=no + 2 + Pager should not override the exit code of other commands $ cat >> $TESTTMP/fortytwo.py <<'EOF'