Help with post-commit script

2013-12-02 Thread Alfred von Campe
I need to implement a post-commit hook that does the following in a "standard" Subversion repository (with trunk, branches, and tags at the top level): 1. Checks for existence of a certain property in the top-level directory of the trunk or branch 2. If property exists, check if any files li

RE: Help with post-commit script

2013-12-02 Thread Andrew Reedick
> -Original Message- > From: Alfred von Campe [mailto:alf...@von-campe.com] > Sent: Monday, December 02, 2013 3:44 PM > To: users@subversion.apache.org > Subject: Help with post-commit script > > I need to implement a post-commit hook that does the follow

Re: Help with post-commit script

2013-12-03 Thread Daniel Shahaf
Andrew Reedick wrote on Mon, Dec 02, 2013 at 16:07:52 -0600: > #!/bin/bash > > set -o pipefail > > REPOS_PATH=$1 > REV=$2 # or is it the other way around? It's this way around. > RECIPIENT_LIST=$(svnlook propget ... my:email_list_prop) Need to set PATH first for this to work. > svnlook chang

RE: Help with post-commit script

2013-12-03 Thread Andrew Reedick
> -Original Message- > From: Daniel Shahaf [mailto:d...@daniel.shahaf.name] > Sent: Tuesday, December 03, 2013 1:14 PM > To: Andrew Reedick > Cc: Alfred von Campe; users@subversion.apache.org > Subject: Re: Help with post-commit script > > > > svnlo

Re: Help with post-commit script

2013-12-03 Thread Daniel Shahaf
ion.apache.org > > Subject: Re: Help with post-commit script > > > > > > > svnlook changed ... > $CHANGED_LIST || exit 1 cat $CHANGED_LIST | sed > > > 's/^//g' | perl -ne 'print "$1$2\n" if > > > /^(

Re: Help with post-commit script

2013-12-03 Thread Alfred von Campe
Thanks to all for the suggestions. I actually oversimplified the situation a little bit (this repo has multiple projects with trunk, branches, and tags directories underneath them), which makes the script a little more complicated. But the concepts presented so far have given me a path forward