You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Thomas Dejanovic <th...@g2microsystems.com> on 2004/07/28 01:22:11 UTC

trigger events in svn

Hi all,

I used to be a clear case user and am interested in setting up triggers 
on events. Clear case has pre and post check in triggers (among others) 
that were very useful.

a simple example would be to run lint on any piece of code before the 
commit is allowed and only allow the commit after lint returns a clean 
bill of health.

Does subversion support this?


Reg's, Thomas D.
--

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: trigger events in svn

Posted by Ben Collins-Sussman <su...@collab.net>.
On Tue, 2004-07-27 at 20:31, Steve Williams wrote:
> They're called pre- and post-commit hooks in Subversion land.  They're in
> the repository directory in a directory called hooks.

Yes, Subversion calls them 'hooks', Clearcase calls them 'triggers'.  

But the big difference here is that in Clearcase, triggers are executed
by the client.  In Subversion, they're executed by the *server*.  That's
the reason a Subversion server can send email after a commit, or can run
a script to validate a commit before it happens (and possibly reject
it.)

So in your case, you'd write a pre-commit hook script that runs 'lint'
on the server.  If lint fails, the server rejects the whole commit.




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: trigger events in svn

Posted by Steve Williams <st...@kromestudios.com>.
They're called pre- and post-commit hooks in Subversion land.  They're in
the repository directory in a directory called hooks.

Sly

> I used to be a clear case user and am interested in setting up triggers
> on events. Clear case has pre and post check in triggers (among others)
> that were very useful.
>
> a simple example would be to run lint on any piece of code before the
> commit is allowed and only allow the commit after lint returns a clean
> bill of health.
>
> Does subversion support this?


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org