I'm trying to prevent push/pull when MQ patches are applied. The problem
(so far) is with the push, which triggers when I'm doing a pull. I
started with this in the ini for the repo:
[hook]
Preoutgoing.mq-no-push = ! hg qtop > /dev/null 2>&1.
However, the device /dev/null in windows is NUL. When I run this command
from the DOS window, it of course generates an error, which cause the
hook to break. (Or so I thought.)
So, I changed to hook to this:
Preoutgoing.mq-no-push = ! hg qtop > NUL 2>&1
>From a DOS prompt, this outputs nothing. But when I attempt to pull a
change down from the server, I still get, "abort: preoutgoing.mq-no-push
hook exited with status 1". I don't know if the "2>&1" works in DOS, but
if it doesn't, then I will never report an error result, and this hook
wouldn't prevent a push when it should. Anyone have any suggestions on
how to make this work on Windows?
Rod Boggess
Software Engineer
Tenova Core
Cherrington Corporate Center
100 Corporate Center Drive
Coraopolis, PA 15108
Phone: 412-262-2240 x2467
Email: [email protected]
Website: www.tenovacore.com
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Tortoisehg-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-discuss