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

Re: how to avoid post-commit hook being executed when branches are modified

From: Ryan Schmidt <subversion-2010b_at_ryandesign.com>
Date: Wed, 23 Jun 2010 01:41:06 -0500

On Jun 23, 2010, at 01:30, Kevin Wu wrote:

> I wrote my post-commit hook for the trunk. But whenever something is committed to one branch, the hook is triggered. How to let post-commit hook discriminate the branch and the trunk?

In the hook, run "svnlook dirs-changed" on the transaction, then inspect its output to see if the commit is affecting the trunk or not.
Received on 2010-06-23 08:41:52 CEST

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.