[PATCH 3 of 3 pager-in-core-prep] tests: switch "this command isn't paged" example to id
Augie Fackler
raf at durin42.com
Tue Feb 7 17:20:19 EST 2017
# HG changeset patch
# User Augie Fackler <augie at google.com>
# Date 1486443452 18000
# Mon Feb 06 23:57:32 2017 -0500
# Node ID 07e0e3c71822222191c8e7a8dc91596dba2c7984
# Parent 91de753aae7cc8594e77b20e26b2a1f8cb017e8f
tests: switch "this command isn't paged" example to id
I'm about to enable pager support in summary.
diff --git a/tests/test-pager.t b/tests/test-pager.t
--- a/tests/test-pager.t
+++ b/tests/test-pager.t
@@ -26,7 +26,7 @@ pager was running.
> hg ci -m "modify a $x"
> done
-By default diff and log are paged, but summary is not:
+By default diff and log are paged, but id is not:
$ hg diff -c 2 --pager=yes
paged! 'diff -r f4be7687d414 -r bce265549556 a\n'
@@ -50,23 +50,13 @@ By default diff and log are paged, but s
paged! 'summary: modify a 9\n'
paged! '\n'
- $ hg summary
- parent: 10:46106edeeb38 tip
- modify a 10
- branch: default
- commit: (clean)
- update: (current)
- phases: 11 draft
+ $ hg id
+ 46106edeeb38 tip
We can enable the pager on summary:
- $ hg --config pager.attend-summary=yes summary
- paged! 'parent: 10:46106edeeb38 tip\n'
- paged! ' modify a 10\n'
- paged! 'branch: default\n'
- paged! 'commit: (clean)\n'
- paged! 'update: (current)\n'
- paged! 'phases: 11 draft\n'
+ $ hg --config pager.attend-id=yes id
+ paged! '46106edeeb38 tip\n'
If we completely change the attend list that's respected:
More information about the Mercurial-devel
mailing list