multiple commands, one process
Kastner Masilko, Friedrich
Kastner-Masilko at at.festo.com
Thu May 6 12:06:27 UTC 2010
> From: Benoît Allard [mailto:benoit at aeteurope.nl]
> Kastner Masilko, Friedrich wrote:
> >
> > AFAIK, there was an attempt to do a kind of "interactive"-extension in
> order to deal
> > with this use-case. Basically, it would allow someone to popen() e.g.
> "hg interactive"
> > and pipe-in commands like you would in a shell while collecting
> output.
> >
>
> Hmm, "hg serve" ?
> hg serve -v --debug
listening at http://**************:8000/ (bound to *:8000)
127.0.0.1 - - [06/May/2010 13:49:32] code 400, message Bad request syntax ('log')
127.0.0.1 - - [06/May/2010 13:49:32] "log" 400 -
"Serve" starts an internal web-server that uses Mercurial's HTTP protocol. You can't
simply open a socket and send "log<ENTER>" there, as the above dump demonstrates. You'd
have to use Mercurial's wire protocol in its HTTP incarnation to get what you want.
This is not the use-case as I understood it from the postings...
If I got that right, it could be as simple as that:
> hg interactive<ENTER> (or whatever)
Somefancyprompt: log<ENTER>
<LOGOUTPUT>
Somefancyprompt: branches<ENTER>
<BRANCHESOUTPUT>
Somefancyprompt: outgoing<ENTER>
<OUTGOINGOUTPUT>
Somefancyprompt: ....
....
Somefancyprompt: interactive<ENTER>
Thank you for using the interactive extension. Have a nice day!
>
This way, you simply use Mercurial's CLI, but only one process. Maybe I missed something,
but AFAIK this is not possible with the web-server.
regards,
Fritz
Development Software Systems
Festo Gesellschaft m.b.H.
Linzer Strasse 227
Austria - 1140 Wien
Firmenbuch Wien
FN 38435y
Tel: +43(1)91075-198
Fax: +43(1)91075-282
www.festo.at
Der Inhalt dieses E-Mails ist ausschliesslich fuer den bezeichneten Adressaten bestimmt. Jede Form der Kenntnisnahme,
Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieses E-Mails durch unberechtigte Dritte ist unzulaessig. Wir
bitten Sie, sich mit dem Absender des E-Mails in Verbindung zu setzen, falls Sie nicht der Adressat dieses E-Mails sind und das
Material von Ihrem Computer zu loeschen.
This e-mail and any attachments are confidential and intended solely for the addressee. The perusal, publication, copying or
dissemination of the contents of this e-mail by unauthorised third parties is prohibited. If you are not the intended recipient of this
e-mail, please delete it and immediately notify the sender.
More information about the Mercurial
mailing list