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

Re: post-commit hook exit out if not from trunk

From: Paul Koning <Paul_Koning_at_dell.com>
Date: Tue, 19 Feb 2008 16:57:28 -0500

>>>>> "arsonx" == arsonx <arsonx_at_opticwind.com> writes:

 arsonx> Looking from suggestions how to exit out of my post-commit
 arsonx> script if the commit was not to the trunk. Example when I
 arsonx> copy trunk to a tag it runs the post-commit. Only want
 arsonx> post-commit to run on trunk commit or have it exit if tag or
 arsonx> branch created.

"svnlook dirs-changed -r <rev> <repository>" will give you the list
of directories changed by that rev. The repository and rev are the
arguments of the post-commit hook script. You can process the output
from svnlook to do the check you need.

     paul

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-02-19 23:59:57 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.