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

Re: Multiple post-commit scripts for multiple projects

From: Graham Anderson <grahama1970_at_gmail.com>
Date: 2007-08-18 02:17:57 CEST

Is there a pre-existing template/example for something like this? I
am more than a bit new at writing post-commit scripts.

I was successfully using this post-commit 'compiled' C example.
Unfortunately, this will only work as one post-commit per repository :(
#include <stddef.h>
#include <stdlib.h>
#include <unistd.h>
int main(void)
{
   execl("/usr/local/bin/svn", "svn", "update", "/home/joe/
public_html/",
         (const char *) NULL);
   return(EXIT_FAILURE);
}

many thanks in advance

G

On Aug 17, 2007, at 4:40 PM, Andy Levy wrote:

> On 8/17/07, Graham Anderson <grahama1970@gmail.com> wrote:
>> Hi
>>
>> Within the same repository, is it possible to execute a post-commit
>> depending on the project/directory being updated?
>>
>> Essentially(in the same repository), project1 executes project1_post-
>> commit, project2 executes project2_post-commit
>> Is this possible, or should I have multiple repositories instead?
>
> Have you considered one script which checks the paths modified in the
> commit and then fires the appropriate sub-script (or just has
> subroutines for each project)?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Aug 18 02:15:51 2007

This is an archived mail posted to the Subversion Users mailing list.