Get copy of revision from remote repository
Koen Vermeer
koen at vermeer.tv
Wed Nov 6 21:01:49 UTC 2013
On 11/06/2013 05:52 PM, Mads Kiilerich wrote:
> Not directly; the protocol has been designed to be simple and give
> good performance, leaving all the processing and user interaction to
> the client side.
>
> But if you are using ssh then you can do
> ssh server 'cd repository; hg archive -t tgz -' > workingcopy.tgz
>
> ... except that "working copy" often refer to the currently checked
> out version which is a bit undefined when using a shared server. You
> might want to add '-r tip' or something like that.
>
> If you are using http and hgweb then you get an archive from an url if
> it is enabled in the configuration.
Thanks for the suggestion. I can indeed now download an archive through
the web server, but I actually would like to disable this in the near
future because I find it hard to define access rights for different
repositories through the web server.
Your first suggestion might work, although I probably have to adapt that
a bit. I'm running mercurial-server so I need to figure out how to
integrate it within that framework (if that's possible at all).
Anyway, at least I now know it's not possible out of the box and I'll
have to figure out what work-around best fits our infrastructure.
Best,
Koen
More information about the Mercurial
mailing list