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

how do you write a commit hook to trap on commits to a specific file?

From: Mark Meyer <mmeyer_at_primexinc.com>
Date: Thu, 16 Dec 2010 10:44:05 -0600

Hello all,


I am currently using svn commit hooks in our environment to trap ALL
commits. The commit hook sends an email to my address.


A typical email generated by a commit looks like this:



Author: mmeyer


Comments: added comments




U Java Projects/sandbox/mark/schema/auf/xml/testdbupgrade.xml




How do you write a commit hook that traps on changes to a SPECIFIC file
(our database create script) so I can capture all of these changes
separately. This would allow me to do a better job of maintaining our
alter scripts that migrate our database from one version to the next.




I would like to hook on any changes made when this file is changed:



Comments: added ip_address to conditions and added received_timestamp
to test results




U Database/trunk/MP/mysql/create/primexmp-create.sql



Thank you,


Received on 2010-12-16 17:51:32 CET

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.