Fail commit if certain text in the commit
From: Steve Williams <stevewilliams_at_kromestudios.com>
Date: 2005-06-09 09:57:05 CEST
Some of the guys here want a commit to fail if there is a certain piece
I have tried adding the following to the template pre-commit hook
if $SVNLOOK diff -t "$TXN" "$REPOS" | grep -i "nocommit" >/dev/null
but it doesn't seem to catch the keyword. Is it my Bash scripting (i'm
-- Sly This message and its attachments may contain legally privileged or confidential information. This message is intended for the use of the individual or entity to which it is addressed. If you are not the addressee indicated in this message, or the employee or agent responsible for delivering the message to the intended recipient, you may not copy or deliver this message or its attachments to anyone. Rather, you should permanently delete this message and its attachments and kindly notify the sender by reply e-mail. Any content of this message and its attachments, which does not relate to the official business of the sending company must be taken not to have been sent or endorsed by the sending company or any of its related entities. No warranty is made that the e-mail or attachment(s) are free from computer virus or other defect.
---------------------------------------------------------------------
|
This is an archived mail posted to the Subversion Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.