[PATCH 2 of 3 V6] hgweb: teach archive how to download a specific directory or file

Kevin Bullock kbullock+mercurial at ringworld.org
Wed Mar 20 11:21:52 CDT 2013


On 20 Mar 2013, at 11:12 AM, Pierre-Yves David wrote:

> On Wed, Mar 20, 2013 at 04:20:26PM +0100, Angel Ezquerra wrote:
>> I agree. In fact that is what the patch does already. This means that
>> if you try to use _any_ pattern (including "path") the web server will
>> respond with an error. The only difference is that if you try to use a
>> "known" pattern the server will respond with a nice 403 "Archive
>> pattern not allowed" message.
> 
> And what if the repo contains a root directory whose name starts with
> this very known pattern?

Do the same thing we do on the command line and let people explicitly prefix such names with 'path:'?

pacem in terris / мир / शान्ति / ‎‫سَلاَم‬ / 平和
Kevin R. Bullock



More information about the Mercurial-devel mailing list