Re: svnlook changed
From: Stefan Haller <haller_at_ableton.com>
Date: 2004-11-04 20:13:11 CET
BRUGGEMAN Jens (JBRG) <Jens.Bruggeman@seco-m.be> wrote:
> If you got a new file which is going to be added, there is no way you can
That's easy. Your pre-commit hook is called with two parameters, the
Something like the following, maybe. Warning: this is typed directly
#!/bin/sh
REPOS="$1"
: ${SVNLOOK:=/usr/local/bin/svnlook}
"$SVNLOOK" changed "$SVNLOOK_SWITCH" "$TXN" "$REPOS" | \
eolstyle="`$SVNLOOK propget svn:eol-style "${SVNLOOK_SWITCH}" "$TXN" "$REPOS" "$filepath" 2>/dev/null`"
if [ "$eolstyle" != native ]; then
exit 0
One hint for developing pre-commit hooks: it is a bit difficult to test
$ SVNLOOK_SWITCH=-r myhook /var/svn/repos 17
-- Stefan Haller Ableton http://www.ableton.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org For additional commands, e-mail: users-help@subversion.tigris.orgReceived on Thu Nov 4 20:14:13 2004 |
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.