[PATCH 0 of 3 hg-website] move website toward sources.js

Adrian Buehlmann adrian at cadifra.com
Mon Nov 22 02:44:24 CST 2010


On 2010-11-22 04:35, David Champion wrote:
> * On 21 Nov 2010, David Champion wrote: 
>>>> http://home.uchicago.edu/dgc/hg/downloads.jpg
>>>
>>> I believe the download URLs are sorted in the wrong order.  We want
>>> lower priority numbered links first.
>>
>> I sorted alphabetically because the previous code did.  We can simply
>> not sort (priority is implied, not explicit, in sources.js, so this
>> equals sort by priority) but I'm not sure that makes a lot of sense to
>> an end-user looking at a list of all downloads for all platforms.  It
> 
> I'll add that I think sorting by priority,name would make sense if it
> were possible, but Matt would need to update the sources.js spec to
> allow that.
> 
> If the spec were updated, it might be useful to have the platform
> included as an explicit field instead of being (presumably)
> somewhere in the package description.  It would allow sorting by
> priority,platform,name or platform,priority,name.
> 
> With multiple sort keys we also could allow the user to choose the
> primary sort key. http://macmercurial.bitbucket.org does this reasonably
> nicely.
> 

I recommend to push David Champion's patches as is for now, so we don't
risk this work is bike shedded to premature death and everyone walks away.

I propose to try deferring the sorting to a next iteration.


More information about the Mercurial-devel mailing list