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

Angel Ezquerra angel.ezquerra at gmail.com
Thu Feb 14 19:23:25 CST 2013


On Fri, Feb 15, 2013 at 2:00 AM, Mads Kiilerich <mads at kiilerich.com> wrote:
> 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
> compatible.
>
> /Mads

OK,

I will reduce the scope of the patch for now, and expose it through
the web interface as I planned. I'll propose the extension to use some
limited sort of patterns on a separate patch.

Cheers,

Angel


More information about the Mercurial-devel mailing list