A patch to allow archive and download folder in mercurial repository with hgweb
Mercurial provides hgweb cgi scripts to allow you manage mercurial repositories using http server. And it allow download the archive of the repository as zip,tar.gz or tar.bz2. But it not allow you to download a whole sub folder as some other version control system web fronts. I create one patch to add this function. You can find it here.
Use http://www.teesoft.info/hg/samples/file/tip/netbeans/PaletteDemo1/ as an example. Follow this
to set a mercurial repository over http. It's use sourceforge as an
examples, but you can also use the similar to other isp if they provide
python support. You can also find the patch I created mercurial 0.9.4.
This is my first try on python. Let me know if you find some error/bug.
Thanks
My Tags: archive
( 2008年03月16日, 11:09:04 下午 CST ) [Listen] Permalink 评论 [0]
为mercurial web cgi做了个打包下载文件夹的补丁
Mercurial提供了通过http方式维护代码仓库的cgi脚本,它支持打包下载整个仓库,却不支持打包下载子目录。所以我做了一个补丁来做这件事。你可以在这里下载它。http://www.teesoft.info/hg/samples/file/tip/netbeans/PaletteDemo1/是一个部署之后的例子。你可以打包下载任何目录。
请参考 这个 在你的服务器上配置 mercurial,唯一的条件是你的服务器支持python。别忘了打我的补丁。
另外,我还做了用于mercurial 0.9.4的补丁。
这是我第一次做python的东西。如果你发现其中有什么不妥请告诉我。
谢谢
Technorati Tags: archive, hgweb, mercurial, tar.gz, tar.gz2, zip
[Read More]








