[PATCH] log: document the characters ---graph uses to draw

Sean Farley sean at farley.io
Wed Apr 26 01:36:10 EDT 2017


Matt DeVore via Mercurial-devel <mercurial-devel at mercurial-scm.org>
writes:

> # HG changeset patch
> # User Matt DeVore <matvore at google.com>
> # Date 1492552292 25200
> #      Tue Apr 18 14:51:32 2017 -0700
> # Node ID 4fe35e47405aee3f61da848a06bef4dc05287ffb
> # Parent  ed42e00a5c4ec7a3bebaec699ef934429cdc2ddd
> log: document the characters ---graph uses to draw
>
> The meaning of : vs | was undocumented and non-obvious.
>
> diff -r ed42e00a5c4e -r 4fe35e47405a mercurial/commands.py
> --- a/mercurial/commands.py	Thu Apr 13 22:31:17 2017 +0900
> +++ b/mercurial/commands.py	Tue Apr 18 14:51:32 2017 -0700
> @@ -3334,6 +3334,8 @@
>      'o' is a changeset, '@' is a working directory parent, 'x' is obsolete,
>      and '+' represents a fork where the changeset from the lines below is a
>      parent of the 'o' merge on the same line.
> +    Paths in the DAG are represented with '|', '/' and so forth. ':' in place
> +    of a '|' indicates one or more revisions in a path are omitted.

This would change the help, so I think you'd need another version that
updates the output. I'm not sure ':' is out of experimental? Though, it
would be nice to have help text augmented if graphstyle.granparent is
set. [corrected below]

Actually, I just checked and this made it to core in d7af9b4ae7dd. Do we
no longer need graphstyle.grandparent and graphstyle.missing in
[experimental]?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 800 bytes
Desc: not available
URL: <http://www.mercurial-scm.org/pipermail/mercurial-devel/attachments/20170425/fa89324f/attachment.sig>


More information about the Mercurial-devel mailing list