[PATCH] web: Made elapsed time calculation dynamic (javascript).

Matt Mackall mpm at selenic.com
Tue Apr 26 15:06:49 CDT 2011


On Tue, 2011-04-26 at 14:52 +0200, Benoît Allard wrote:
> Martin Geisler wrote:
> > Benoît Allard <benoit at aeteurope.nl> writes:
> >> Another solution that comes to mind would be to calculate the elapsed
> >> time in javascript. That way, the content of the page is always the
> >> same and can be safely cached.
> > 
> > Heh, that is much more elegant than the server-side solution I just
> > outlined!
> > 
> 
> Here it is !
> 
> As there are (really) long lines in the templates, you might get into 
> trouble with line wrapping. For this reason, the patch is also enclosed 
> as bundle.

If we're going to start using Javascript more extensively (currently the
only user is the graph view), we probably want to have a monolithic
mercurial.js rather than a bunch of smaller js files.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list