[PATCH] hgweb: make graph page really Non-Javascript compliant

Augie Fackler lists at durin42.com
Mon Jun 23 23:19:08 CDT 2008


On Jun 23, 2008, at 5:49 PM, Matt Mackall wrote:

>
> On Tue, 2008-06-24 at 00:38 +0200, Ben wrote:
>> That patch is a step further in the process in making the current
>> shortlog webpage disappears ... gniark gniark ...
>>
>> Advantage of that patch: It confuse less the user as in a near  
>> future,
>> the shortlog link will disappear, the less choice we have, the less
>> confused we get.
>>
>> Disadvantage: the timing I made takes 1.7 time more to generate the  
>> page.
>>
>> (50 revcount to display x 10), measured with `hg serve --time`
>> with the patch applied: user time: 1.517 sec
>> without : 0.883 sec.
>
> Is it possible for Javascript to introspect on the page source and  
> pull
> the data for the graph out of the non-javascript region?

Boredom/curiosity set in, so I tried to implement this. I only got as  
far as the default style, but I think it's definitely possible. Branch  
here, which is also serving using the code from its tip:
http://hg.durin42.com/mercurial/durin42-experimental-templates/

Peace,
Augie

>
>
> -- 
> Mathematics is the supreme nostalgia of our time.
>
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel



More information about the Mercurial-devel mailing list