Re: Post commit script examples?
From: Campbell Allan <campbell.allan_at_sword-ciboodle.com>
Date: Thu, 19 Aug 2010 10:27:49 +0100
On Wednesday 18 Aug 2010, Greg Alexander wrote:
Sorry for not answering your actual question but I feel that isn't the correct
I think a better way to approach the problem would be to distribute an
The area to look at in the subversion book is here, search for auto-props:
oh, and I can help with the pre-commit hook. Hopefully this works but the
also I think the script can be cleaned up so their are only two svnlooks. I
#!/bin/sh
REPOS="$1"
SVNLOOK=/path/to/svnlook
# redirect all stdout to stderr, this is passed back to the subversion client
TMPFILE=/tmp/svn-pre-commit-$$.tmp
# pick out interesting files
NOTIFIED=
# check file
echo "$FILENAME"
rm $TMPFILE
if [ ! -z "$NOTIFIED" ]; then
# All checks passed, so allow the commit.
-- __________________________________________________________________________________ Sword Ciboodle is the trading name of ciboodle Limited (a company registered in Scotland with registered number SC143434 and whose registered office is at India of Inchinnan, Renfrewshire, UK, PA4 9LH) which is part of the Sword Group of companies. This email (and any attachments) is intended for the named recipient(s) and is private and confidential. If it is not for you, please inform us and then delete it. If you are not the intended recipient(s), the use, disclosure, copying or distribution of any information contained within this email is prohibited. Messages to and from us may be monitored. If the content is not about the business of the Sword Group then the message is neither from nor sanctioned by us. Internet communications are not secure. You should scan this message and any attachments for viruses. Under no circumstances do we accept liability for any loss or damage which may result from your receipt of this email or any attachment. __________________________________________________________________________________Received on 2010-08-19 11:31:13 CEST |
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.