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

post-commit update hook locking wc

From: chris feldmann <cfeldmann_at_gmail.com>
Date: 2007-06-29 23:08:39 CEST

Hi
I have a variety of websites in repositories on a webserver where the
webroot for each repo is checked out working copy on the same
webserver. For some time now I've used post-commit hooks that call a
small c binary i made that just execl's the subversion update command
on the web root working copy from the repository that receives the
commit. This way, of course, I can work locally on a wc, commit it,
and reload the website to see the changes in the webroot wc.

But recently (2 days ago), the hooks started leaving the webroot wc in
a locked state. It appears that the hook is locking the wc itself
immediately before updating (it writes an empty lock file to the top
level .svn dir). The update then fails silently. Obviously something
changed since this method had been working fine for almost a year, but
I'm not even sure where to start looking. Or which of the other devs
to start blaming :)

Just operating directly on the wc webroots ssh'd into the server works
normally. This seems to happen only when the hooks run. Oh and it
started happening for all of the repositories simultaneously; although
each has its own binary updater.

Chris

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jun 29 23:08:52 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.