Command server

Idan Kamara idankk86 at gmail.com
Sat Dec 17 21:45:37 UTC 2011


On Sat, Dec 17, 2011 at 7:11 PM, Sergey Antonov <sergant_ at mail.ru> wrote:

> I'm working on mercurial integration to an IDE.
>
> Currently I use a mercurial command line client (hg) with redirected
> output for the operations with repository.
>
> Now I'm looking at the 'command server' mode, that was introduced in hg
> 1.9.
>
> I've made some tests and found that commands like
> incoming/outgoing/push/pull does not asks for credentials via command
> server protocol and simply aborts with 'abort: http authorization required'.
>

Please provide an example (preferably with python-hglib). I don't recall
trying it but I don't see why it shouldn't work.


>
> Is there plans to support interaction with user via command server
> protocol ? For example, there can be dedicated 'required' channel for
> asking credentials. And client may switch a server to interactive mode, so
> it will use such a channel and not simply aborts.
>

The protocol already supports interaction, see the required channels here:
http://mercurial.selenic.com/wiki/CommandServer#Channels


> The second problem is that server needs a repository. I know that this is
> known limitation. But it is not possible to clone a remote repository in
> command server mode.


I tried fixing this at some point, but it had too many edge cases to be
worth the hassle.

What we do in python-hglib is run clone (or other non-repo commands) on the
command line and then optionally connect to it using the cmdserver.


>
>
> --
> Sergey Antonov
> sergant_ at mail.ru
> ______________________________**_________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/**listinfo/mercurial<http://selenic.com/mailman/listinfo/mercurial>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20111217/6631ee74/attachment-0002.html>


More information about the Mercurial mailing list