Patchwork [3,of,3,pager-in-core-prep] tests: switch "this command isn't paged" example to id

login
register
mail settings
Submitter Augie Fackler
Date Feb. 7, 2017, 10:20 p.m.
Message ID <07e0e3c71822222191c8.1486506019@arthedain.pit.corp.google.com>
Download mbox | patch
Permalink /patch/18343/
State Accepted
Delegated to: Martin von Zweigbergk
Headers show

Comments

Augie Fackler - Feb. 7, 2017, 10:20 p.m.
# HG changeset patch
# User Augie Fackler <augie@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.
via Mercurial-devel - Feb. 14, 2017, 6:04 p.m.
On Tue, Feb 7, 2017 at 2:20 PM, Augie Fackler <raf@durin42.com> wrote:
> # HG changeset patch
> # User Augie Fackler <augie@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:

Queued with s/summary/id/ on the line above. Thanks, and sorry about the delay.

>
> -  $ 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:
>
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel@mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Patch

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: