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

pre-commit hook log verification

From: Kusar, Jason <Jason.Kusar_at_ngc.com>
Date: 2006-03-14 20:29:10 CET

Hello all,
 
I am currently using a pre-commit hook to verify that a valid bugzilla bug number is entered into a log message before allowing a commit. The hook then attaches the log to the bug entry. However, I have discovered that when JBuilder places a new project into Subversion, it does so with an empty commit message with no place to add one.
 
Is there any way for a pre-commit hook to recognize that the commit is an import as opposed to an update or regular add? I'd like to just go ahead and allow an empty log message when the action is import. As far as I can tell, the only thing I could do would be to check if all of the changed files are additions, but unfortunately, this would also be true if the only change was a single added file or directory, so that doesn't really work.
 
If anyone knows any other subversion tricks to get at the information I need, I would appreciate it. I'm using Subversion 1.3.0 running under Apache on Linux.
 
TIA!
 
--Jason

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Mar 14 20:30:30 2006

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