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

post-commit frustrations, not working

From: Kevin Tomasek <ktomasek_at_d2audio.com>
Date: 2007-11-01 17:45:13 CET

for the 3998th time a stupid question with respect to hook scripts. i
have read dozens of posts about this and yet i can't find the magic.
using 1.4.5 for server and clients.

the svnserver is running as me (ktomasek)
ps aux | grep svn
ktomasek 20341 0.0 0.0 80376 992 ? Ss Oct31 0:00
/usr/local/bin/svnserve -d --pid-file /etc/svnPID

the permission of the post-commit script are:
bash-3.00$ ls -al
total 60
drwxrwxr-x 2 ktomasek design 4096 Nov 1 11:14 .
drwxrwxr-x 7 ktomasek design 4096 Oct 30 15:01 ..
-rwxrwxr-x 1 ktomasek design 2089 Nov 1 11:14 post-commit

the contents of the post commit script are:
echo "test"

echo $REV
/home/ktomasek/bin/printSvnInfo $REV $REPOS
# commit-email.pl "$REPOS" "$REV" commit-watchers@example.org
# log-commit.py --repository "$REPOS" --revision "$REV"

command line execution:
bash-3.00$ ./post-commit beanhead /pathto/beanhead

the script printSvnInfo just adds a line to a file. the contents of
this file are:
ktomasek@d2al220 /tmp/svnco/sand[460]>cat /tmp/svnJunk
abcd lkjlkj

jlkjlk kljds
jlkjlk kljds
jlkj99999999 kljds88
jlkj9999 kljds88
jlkj99a kljds88
jlkj9 kljds88
jlkj90 kljds88
/pathto/beanhead beanhead

and yet when executed by svn, the contents of the above file never
change. i know that svn sees the file because if i remove the
executable bits, the svn commit process complains about it. if i change
the line 'exit' in the post-commit script to 'exit 0' or 'exit 1' it
complains in the same manner. the following is a snip from a commit in
which there are no complaints, and yet the file is unmodified.

ktomasek@d2al220 /tmp/svnco/sand1/tr/pad[455]>svn ci d2a_fsa0a_c_io.v -m
Sending d2a_fsa0a_c_io.v
Transmitting file data .
Committed revision 60.

no echo outputs, no complaint outputs, and no file changes.. i am stumped.

any ideas???


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Nov 1 17:45:53 2007

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.