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

RE: testing hooks locally

From: Barnett, Chris <Chris.Barnett_at_Yum.com>
Date: 2006-01-24 00:05:00 CET

Which hook script are you trying to test?

If it's post-commit or start-commit, it's easy - just run them from the
shell. You just need to make sure you're the user that normally operates
on the repository (the apache/svnserve user), and that you're passing
the appropriate arguments.

If it's pre-commit, that's a bit more difficult as you need a
transaction number instead of a revision number.

I'm not sure about the other hook scripts.

 - Chris
________________________________

From: Hill, Don [WHQKH] [mailto:Don.A.Hill@united.com]
Sent: Tuesday, 24 January 2006 9:37 AM
To: users@subversion.tigris.org
Subject: testing hooks locally

Hi,

 

I have a large number of files and what I want to know is there any way
to process the hooks without doing a commit, if I have a hook that
requires some copyright and files don't have them will fail, what I want
is a way to run the hooks before I attempt to commit the files.

 

Thanks

This communication is confidential and may be legally privileged. If you are not the intended recipient, (i) please do not read or disclose to others, (ii) please notify the sender by reply mail, and (iii) please delete this communication from your system. Failure to follow this process may be unlawful. Thank you for your cooperation.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jan 24 00:06:22 2006

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.