[PATCH 2 of 2 V4] hgweb: teach archive how to handle file patterns

Mads Kiilerich mads at kiilerich.com
Thu Feb 14 19:00:58 CST 2013

Angel Ezquerra wrote, On 02/14/2013 09:22 AM:
> On Thu, Feb 14, 2013 at 2:30 AM, Mads Kiilerich <mads at kiilerich.com> wrote:
>> Angel Ezquerra wrote, On 02/10/2013 11:56 AM:
>> If something in this area is needed then I would suggest focusing on just
>> making it possible to download a single directory as tar file. There is no
>> need for a pattern - we only need a path after the archive, for instance
>> .../archive/REV.tar.bz2/sub/dir .
> This will definitely be possible and even accessible through the web
> interface. I'd just like to also be able to do:
> .../archive/REV.tar.bz2/sub/dir/**.{c,h}

I don't know what Matt has suggested, but I would suggest targeting the 
"download a single folder" use case first. Support for 
".../archive/REV.tar.bz2/sub/dir/" could be exposed in the UI and it 
would be simple and it would be obvious what it did and it would be 
somewhat useful.

Patterns could perhaps be added later. It would be an extension of the 
existing functionality and the syntax would be (sufficiently) backwards 


More information about the Mercurial-devel mailing list