You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Kevin Wu <ke...@gmail.com> on 2010/06/23 06:30:58 UTC
how to avoid post-commit hook being executed when branches are
modified
Hi,
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?
Thanks a lot.
--
Best wishes,
Kevin Wu
Re: how to avoid post-commit hook being executed when branches are
modified
Posted by Kevin Wu <ke...@gmail.com>.
Thanks Ryan~
On Wed, Jun 23, 2010 at 2:41 PM, Ryan Schmidt <
subversion-2010b@ryandesign.com> wrote:
>
> 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.
>
>
--
Best wishes,
Kevin Wu
Re: how to avoid post-commit hook being executed when branches are modified
Posted by Ryan Schmidt <su...@ryandesign.com>.
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.