using static-http with PUT/POST
Rian Hunter
rian at thelig.ht
Sat Apr 7 17:34:43 UTC 2012
Hmm well for editing a remote resource via Http PUT/DELETE should be enough. WebDAV gives you the MOVE, COPY, MKCOL, LOCK, and UNLOCK which are nice for efficiency reasons.
I'm fine writing the patch myself, I dont need anyone here to spend their blood, sweat, and tears on a feature they don't care about :). I have a server that will save data to the file system using PUT, and DELETE in the same way. I guess I was wondering if it was theoretically possible. I.e. would implementing something like this actually need the more advanced file system commands that WebDAV gives, or can I get away with just PUT/DELETE.
Also does mercurial do bulk transfers without needing to inspect it's data? If so http pipelining can speed up the interaction.
On Apr 7, 2012, at 10:00 AM, Matt Mackall <mpm at selenic.com> wrote:
> 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.
>
>
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial
More information about the Mercurial
mailing list