[PATCH] verify pulling from a proper hg repository

Matt Mackall mpm at selenic.com
Thu Jul 21 22:35:03 UTC 2005


On Thu, Jul 21, 2005 at 11:26:47PM +0300, Muli Ben-Yehuda wrote:
> Hi,
> 
> When pulling from a non hg repository URL (e.g. http://www.kernel.org/hg)
> you geta pretty obscure error (zlib: uknown compression type). The
> attached patch modifies hgweb.py and hg.py to supply and check a
> 'Content-type: application/hg-0.1' HTTP header for the branches,
> between and changegroup commands, so that we know it's a proper hg
> repo before snarfing the input. Comments appreciated!

This is great. I'm going to add it and then make some changes on top
of it.

-- 
Mathematics is the supreme nostalgia of our time.



More information about the Mercurial mailing list