using static-http with PUT/POST
Matt Mackall
mpm at selenic.com
Sat Apr 7 17:00:16 UTC 2012
On Fri, 2012-04-06 at 15:07 -0700, Rian Hunter wrote:
> hello
>
> it is possible to push to a static-http mercurial repo that supports
> PUT/POST (and not just GET)?
No.
> if not can i implement that? what are the thoughts about that?
Not really. To be able to read/write files on a webserver, rather than
simple read them, PUT/POST won't help. Those methods are generally for
interacting with server-side applications, and no "static" web server
will simply let you write to files that way.
The closest thing to what you're asking for would be a WebDAV[1]-enabled
server and adding WebDAV support in Mercurial. As static-http access is
very inefficient and only useful for very small repos and has very few
users to start with, we'll probably never bother to implement this sort
of thing.
But if you already have a WebDAV server, you may be able to use FUSE[2]
(on Linux or Mac) or the WebDAV redirector[3] on Windows to do this
without modifying Mercurial.
[1] https://en.wikipedia.org/wiki/WebDAV
[2] http://0pointer.de/lennart/projects/fusedav/
[3] http://technet.microsoft.com/en-us/library/cc787023%28v=ws.10%
29.aspx
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial
mailing list