[PATCH hg-website] downloads: fix link text and link targets for TortoiseHg 1.1.6.1
Matt Mackall
mpm at selenic.com
Fri Nov 19 17:18:47 CST 2010
On Fri, 2010-11-19 at 12:08 -0600, David Champion wrote:
> * On 19 Nov 2010, Steve Borho wrote:
> > On Fri, Nov 19, 2010 at 9:01 AM, David Soria Parra <dsoria at gmx.net> wrote:
> > > -----BEGIN PGP SIGNED MESSAGE-----
> > > Hash: SHA1
> > >
> > >
> > >> FWIW: I'd prefer the Mercurial website to simply link to:
> > >>
> > >> http://tortoisehg.bitbucket.org/download/index.html
> > > but it would be great to get tortoise directly through the download button.
> >
> > Then we need a mechanism for updating that link.
> >
> > There's a text file: http://tortoisehg.bitbucket.org/curversion.txt.
> > Could a cron job poll and parse it?
>
> A piece of Javascript could XHR it and rewrite the link. Here's a
> simple-minded POC, with no serious bug-checking -- I'm sure someone out
> here (or a toolkit) can do better.
>
> http://pastebin.com/CyTiQ5Mk
>
Some of the infrastructure for this is already available (and has been
for months):
- a cron job
- a script that polls sources and builds a javascript include:
http://mercurial.selenic.com/sources.js
- some sources:
http://mercurial.selenic.com/latest.dat
http://tortoisehg.bitbucket.org/latest.dat
What's still needed:
- more sources
- code for the main webpage to use the above javascript
The source format is described here:
http://mercurial.selenic.com/wiki/BinaryReleasePlan
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial-devel
mailing list