##// END OF EJS Templates
hgweb: teach archive how to download a specific directory or file...
hgweb: teach archive how to download a specific directory or file The archive web command now takes into account the "file" request entry, if one is provided. The provided "file" is processed as a "path" corresponding to a directory or file that will be downloaded. With this change hgweb can to process requests such as: http://mercurial.selenic.com/hg/archive/tip.zip/mercurial/templates This will download all files on the mercurial/templates directory as a zip file. It is not possible to specify file patterns ('glob', 'relglob', 'path', 'relpath', 're', 'relre' nor 'set'). The server will reject those with a 403 HTTP error response. Note that this is a first step to add support for downloading directories from the web interface. A following patch will modify the archiveentry map entry on the different templates so that it adds the current folder path to the archive links.

File last commit:

r18526:9409aeaa stable
r18771:bb38f4f7 default
Show More
tagentry.tmpl
8 lines | 306 B | application/x-cheetah | CheetahLexer
Dan Villiom Podlaski Christiansen
setup: install translation files as package data...
r9999 <entry>
<title>{tag|escape}</title>
Thomas Arendsen Hein
hgweb: urlescape all urls, HTML escape repo/tag/branch/... names...
r18526 <link rel="alternate" href="{urlbase}{url|urlescape}rev/{node|short}"/>
<id>{urlbase}{url|urlescape}#tag-{node}</id>
Dan Villiom Podlaski Christiansen
setup: install translation files as package data...
r9999 <updated>{date|rfc3339date}</updated>
<published>{date|rfc3339date}</published>
<content type="text">{tag|strip|escape}</content>
</entry>