[PATCH] graphlog: add another graph node type, unstable, signified by character "*"
Yuya Nishihara
yuya at tcha.org
Thu Dec 28 13:08:21 UTC 2017
On Fri, 22 Dec 2017 23:59:34 +0800, Anton Shestakov wrote:
> # HG changeset patch
> # User Anton Shestakov <av6 at dwimlabs.net>
> # Date 1513955824 -28800
> # Fri Dec 22 23:17:04 2017 +0800
> # Node ID 9a1654009818562a26e99c535df7de532780ce75
> # Parent bb6a80fc969a2c5da80cbb7f29de7ca576c4e251
> graphlog: add another graph node type, unstable, signified by character "*"
"(BC)" could be added in flight.
> diff --git a/mercurial/templatekw.py b/mercurial/templatekw.py
> --- a/mercurial/templatekw.py
> +++ b/mercurial/templatekw.py
> @@ -538,6 +538,8 @@ def showgraphnode(repo, ctx, **args):
> return '@'
> elif ctx.obsolete():
> return 'x'
> + elif ctx.isunstable():
> + return '*'
> elif ctx.closesbranch():
> return '_'
> else:
> diff --git a/tests/test-amend.t b/tests/test-amend.t
> --- a/tests/test-amend.t
> +++ b/tests/test-amend.t
> @@ -188,7 +188,7 @@ With allowunstable, amend could work in
> $ hg log -T '{rev} {node|short} {desc}\n' -G
> @ 3 be169c7e8dbe B
> |
> - | o 2 26805aba1e60 C
> + | * 2 26805aba1e60 C
> | |
> | x 1 112478962961 B
> |/
I'm 0 on this, but I have no reason against it. Any comments?
More information about the Mercurial-devel
mailing list