[PATCH] graphmod: partial edge styling

timeless timeless at gmail.com
Wed May 4 15:42:15 EDT 2016


I wrote it poorly, but yes, that's what I wanted, thanks!
On May 4, 2016 2:36 PM, "Martijn Pieters" <mj at zopatista.com> wrote:

> On 4 May 2016 at 17:56, Martijn Pieters <mj at zopatista.com> wrote:
> >>> Just a thought; I don't mean to dismiss the idea. Either way, it can
> >>> probably be added on later ("-2:" or something) if we want to.
> >
> > In this case, that'd probably be inconsistent with Python's negative
> counting, which you'd expect to count from the end. I'll have a look how
> easy this would be to do both directions.
>
> Ah, I misunderstood what timeless was asking for here. I assumed there
> was a need to draw the *first* N lines in the grandparent style; I
> think you instead meant to draw everything *except* the first N lines
> in that style.
>
> So for "2." you get:
>
>   o  lorum ipsum
>   |  dolor sit amet
>   |  ius cu graeci
>   |  tamquam explicari
>   .  cu eum incorrupte
>   .
>   o
>
> but for "-2." you get:
>
>   o  lorum ipsum
>   |  dolor sit amet
>   .  ius cu graeci
>   .  tamquam explicari
>   .  cu eum incorrupte
>   .
>   o
>
> because the first two lines (including the o node!) are *not* drawn in
> this style.
>
> Am I interpreting you correctly here now, timeless?
>
> I definitely see a need here now to add template keywords that can set
> graphing styles (thanks MPM for the idea). That way you can specify
> how many lines of grandparent edge you should be drawn *per template*.
>
> --
> Martijn Pieters
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mercurial-scm.org/pipermail/mercurial-devel/attachments/20160504/5a897a48/attachment.html>


More information about the Mercurial-devel mailing list