[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Fail commit if certain text in the commit

From: Steve Williams <stevewilliams_at_kromestudios.com>
Date: 2005-06-21 03:12:54 CEST

Steve Williams wrote:
> if $SVNLOOK diff -t "$TXN" "$REPOS" | grep -i "nocommit" >/dev/null
> then (echo "Contains nocommit keyword"; exit 1)
> fi

I have changed the above to

$SVNLOOK diff -t "$TXN" "$REPOS" | \
    grep -i "nocommit" >/dev/null && { echo "Contains 'nocommit'
keyword" 1>&2; exit 1; }

and it works. Primary change was from using parentheses to braces.

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.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jun 21 03:14:39 2005

This is an archived mail posted to the Subversion Users mailing list.