You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Rex Zhen <re...@yahoo.com> on 2007/08/27 20:16:42 UTC
Can I set hook script based on project/folder?
is there any way to set hook on project instead of the whole repository?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Can I set hook script based on project/folder?
Posted by Andy Levy <an...@gmail.com>.
On 8/27/07, Rex Zhen <re...@yahoo.com> wrote:
> As i know, all hook scripts locate under HOOK folder under
> repository. the script post-commit will run when ever a commit to
> the repository happen. How can I specify the project which is not
> physically in the file system.
Use svnlook changed to find out what paths changed in the repository,
and then if the commit acts upon the directory(ies) which you want it
for, have it take action. Otherwise, have it do nothing.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Can I set hook script based on project/folder?
Posted by Rex Zhen <re...@yahoo.com>.
As i know, all hook scripts locate under HOOK folder under
repository. the script post-commit will run when ever a commit to
the repository happen. How can I specify the project which is not
physically in the file system.
On Aug 27, 2007, at 3:29 PM, Karl Fogel wrote:
> Rex Zhen <re...@yahoo.com> writes:
>> is there any way to set hook on project instead of the whole
>> repository?
>
> Just make your hook do nothing if the commit is not under a certain
> project directory. A hook is a program: it can do anything you
> want! :-)
>
> -Karl
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Can I set hook script based on project/folder?
Posted by Karl Fogel <kf...@red-bean.com>.
Rex Zhen <re...@yahoo.com> writes:
> is there any way to set hook on project instead of the whole repository?
Just make your hook do nothing if the commit is not under a certain
project directory. A hook is a program: it can do anything you want! :-)
-Karl
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org