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

RE: Simple post-commit hook script not working

From: Dassi, Nasser <NDassi_at_141xm.com>
Date: 2005-03-03 14:38:03 CET

I believe resource locking is your culprit. To what extent? That's for
someone else to figure out.

In short, I initially tried similar (check-in via WebDAV+Apache2+SVN
modules) with minimal success. Instead, I use a standard WebDAV+Apache2
set-up, and I run a Scheduled Task which checks in all changes to the
SVN Repo.

Unfortunately all changes are not user-tagged + commented for now. When
SVN 1.2 is released, the "SVNAutoversioning" command (which checks-in
changes on-the-fly) will allow a post-commit hook to update the working
copy [instead of the scheduled-task updating the repository].

- nasser

Nasser Dassi
Sr. Technical Programmer
=========================================
E: ndassi@141xm.com <mailto:ndassi@141xm.com>
=========================================

  _____

From: Greg Kolanek [mailto:Greg.Kolanek@osce.org]
Sent: Thursday, March 03, 2005 5:27 AM
To: users@subversion.tigris.org
Subject: Re: Simple post-commit hook script not working

> Have you tried doing something simple like testing with a hook script
> like 'echo test > c:\test.txt'. If the apache user has write access to
> c: that is, otherwise use another path.
 
Just tried that, and it didn't work, either.
 
The place to check, I think, was Apache's error_log:
 
[Thu Mar 03 11:19:58 2005] [warn] [client 10.100.17.178] The PUT was
successful, but there was a problem automatically checking in the
resource or its parent collection. [500, #0]
[Thu Mar 03 11:19:58 2005] [warn] [client 10.100.17.178] Unable to
auto-checkin resource
//!svn/wrk/0edafd17-8730-434c-9d57-717fc47391a4/trunk/test8.html. [500,
#0]
[Thu Mar 03 11:19:58 2005] [warn] [client 10.100.17.178] An error
occurred while committing the transaction. [409, #720145]
[Thu Mar 03 11:19:58 2005] [warn] [client 10.100.17.178] Can't remove
'd:/Subversion/db/transactions/25-1.txn': The directory is not empty.
[409, #720145]
 
In fact, d:\Subversion\db\transactions is full of (empty) .txn folders.
What's going on here?
Received on Thu Mar 3 14:43:06 2005

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.