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

Empty output of svn update in hook script

From: Borek Bernard <borekb_at_gmail.com>
Date: Wed, 10 Jun 2009 14:58:04 +0200

I'm running Apache 2.2 server (Windows) with SVN 1.6.2 and want to update my production server after each commit. Therefore, I've set up a post-commit hook like this:

svn update \\myserver\livefolder
exit 0

When I execute this post-commit.bat script on command line, it works fine. However, when the hook script gets executed by Apache, my production server isn't updated. To help debug the issue, this is how I amended the script:

echo %time% > mylog.txt
svn update \\myserver\livefolder
exit 0

Normally, in mylog.txt file, I should see something like

13:44:11.91
U \\wendy\wendyd\worddocs\temp.txt
Updated to revision 35.

which I indeed do when the script is run from the command line but when I run it via the commit operation, I can see only the timestamp. Isn't it weird that the svn update doesn't output anything? Not even "updated to revision XYZ"? At the same time, I think the command doesn't crash because all the subsequent lines (if there are any) are executed just fine.

Even more curiously, when I add some other server like \\testserver\testlocation to the script (after the failing production server), it gets updated fine.

Any ideas?

Thanks,
Borek

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2360909

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-06-10 15:02:38 CEST

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.