[PATCH 3 of 3] graphmod: use different styles for different edge types

Tim Delaney timothy.c.delaney at gmail.com
Tue Feb 23 14:30:20 EST 2016


On 24 February 2016 at 01:18, Martijn Pieters <mj at zopatista.com> wrote:

>
> How does this a solid line ending in a `~` look like? Samples:
>
> One line of output per node:
>
> o    merge, one parent missing
> |\
> | ~
> o    single parent, missing
> |
> ~
>
> Multiple lines:
>
> o    summary: Merge, one parent missing
> |\   changeset:   20:d30ed6450e32
> | ~  parent:      18:1aa84d96232a
> |    parent:      21:d42a756af44d
> |    user:        test
> |
> o    summary: single parent, missing
> |    changeset:   21:d42a756af44d
> ~    parent:      19:31ddc2c1573b
>      user:        test
>
> Note that the missing-parent line ends early.
>

I think that's a huge improvement.

I don't know if it's feasible with the current graphing code (I suspect
not), but it might also be nice if we could trim lines that would continue
past the end of the graph (and indicate that with an *) e.g.

  o    changeset:   32:d06dffa21a31
  |\   parent:      27:886ed638191b
  | :  parent:      31:621d83e11f67
  | :  user:        test
  | :  date:        Thu Jan 01 00:00:32 1970 +0000
  | :  summary:     (32) expand
  | :
  o :  changeset:   31:621d83e11f67
  |\:  parent:      21:d42a756af44d
  | :  parent:      30:6e11cd4b648f
  | :  user:        test
  | :  date:        Thu Jan 01 00:00:31 1970 +0000
  | :  summary:     (31) expand
  | :
  o :    changeset:   30:6e11cd4b648f
  |\ \   parent:      28:44ecd0b9ae99
  | ~ :  parent:      29:cd9bb2be7593
  |   :  user:        test
  |   :  date:        Thu Jan 01 00:00:30 1970 +0000
  |   :  summary:     (30) expand
  |   :

would become:

  o    changeset:   32:d06dffa21a31
  |\   parent:      27:886ed638191b
  | :  parent:      31:621d83e11f67
  | :  user:        test
  | :  date:        Thu Jan 01 00:00:32 1970 +0000
  | :  summary:     (32) expand
  | :
  o :  changeset:   31:621d83e11f67
  |\:  parent:      21:d42a756af44d
  | :  parent:      30:6e11cd4b648f
  | :  user:        test
  | :  date:        Thu Jan 01 00:00:31 1970 +0000
  | :  summary:     (31) expand
  | *
  o    changeset:   30:6e11cd4b648f
  |\   parent:      28:44ecd0b9ae99
  | ~  parent:      29:cd9bb2be7593
  |    user:        test
  |    date:        Thu Jan 01 00:00:30 1970 +0000
  |    summary:     (30) expand
  *

Tim Delaney
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mercurial-scm.org/pipermail/mercurial-devel/attachments/20160224/f251a263/attachment.html>


More information about the Mercurial-devel mailing list