[PATCH hg-website] downloads: fix link text and link targets for TortoiseHg 1.1.6.1

David Champion dgc at uchicago.edu
Fri Nov 19 12:08:00 CST 2010


* 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

-- 
David Champion  *  dgc at uchicago.edu  *  IT Services  *  University of Chicago


More information about the Mercurial-devel mailing list