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

A little problem with post-commit hook

From: Manuel Vázquez Acosta <mva.led_at_gmail.com>
Date: 2006-12-06 17:26:53 CET

Hi all,

I'm setting up a repository for which I need to do a post-commit that
check out the just committed revision so I can grab some files and
process them. Here is my current post-commit script:

#!/bin/bash
REPOS="$1"
REV="$2"
logger "post-commit called with $REPOS#$REV"
REPOS_URL="http://localhost/svn-meta"
TEMPNAME=/tmp/svn-meta.$REV
svn co -r $REV "$REPOS_URL" "$TEMPNAME"
# Then process the files is $TEMPNAME
...

However, it seems that svn co can't be executed at this point. Am I
right? Should I defer a little bit the execution of svn co?

The later processing shows that $TEMPNAME is not being created.

Any ideas?

Manuel.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Dec 6 17:27:38 2006

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