Hook output over https

Gavin Barrett Gavin.Barrett at cgu.com.au
Thu Oct 21 06:30:21 UTC 2010


_______________________________________________________________________________________

Note: This e-mail is subject to the disclaimer contained at the bottom of this message.
_______________________________________________________________________________________


I have a Mercurial hook that runs on a remote Windows server.  The hook fires when someone pushes to it.  It is a python script that is invoked "out of process". Under certain conditions, this hook should print a message to stdout and exit with a 1.  If I logon directly to the remote Windows server and do a push specifying the full path names (e.g. push d:\test\repo d:\mercurial\repo), then the hook fires correctly and gives the correct output messages on the screen.  But when I do a push from another machine with push d:\repo https://..repo then there is no output from the hook written to the screen when there should be.  The missing output occurs even though the hook in all other respects exhibits the right behaviour over https (I wrote the hook output to a debug file and the debug file shows the hook is firing at the right times over https and writing the correct output to the debug file).  My question is, when someone is pushing to this remote Windows server via https, how do I get the output of the hook to write to the screen so that the user can see it?


_______________________________________________________________________________________

The information transmitted in this message and its attachments (if any) is intended 
only for the person or entity to which it is addressed.
The message may contain confidential and/or privileged material. Any review, 
retransmission, dissemination or other use of, or taking of any action in reliance 
upon this information, by persons or entities other than the intended recipient is 
prohibited.

If you have received this in error, please contact the sender and delete this e-mail 
and associated material from any computer.

The intended recipient of this e-mail may only use, reproduce, disclose or distribute 
the information contained in this e-mail and any attached files, with the permission 
of the sender.

This message has been scanned for viruses.
_______________________________________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20101021/1d4c4485/attachment.html>


More information about the Mercurial mailing list