Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

My post-commit hook looks like this:

pushd C:\Websites\Project

svn update

I am updating my server copy of repository.

When I commit client stopped on sending content and locked or I dont know. Its is waiting for something. So when I cancel and try to update manually on server, I see:

Working copy "." lockedsvn

And only after manual cleanup and update again, I get updated revision, that was really commited.

What I do wrong?

share|improve this question

2 Answers 2

Two thoughts:

  • Is svn update stopping to ask for a password? Commit hooks are non-interactive, so if svn update asks for a password, then there'll be no way to enter it. Try doing svn update --username xxxx --password xxxx --non-interactive (replacing as appropriate).

  • Try redircting the output of svn update to file so you can see what it's doing (e.g., svn update > my.debug.file.log), then if that doesn't shed any light, report back here to see if anyone can give more information.

Note also that the SVN FAQ has a section on this here: http://subversion.apache.org/faq.html#website-auto-update ... pay attention to the discussion in there regarding directory permissions on the target.

share|improve this answer

It sounds like you svn update is actually taking place and the post-commit hook is just waiting for it to complete (you don't say how long you wait for it to complete).

This could be just because there's lots of content being updated, alternatively it could be that your update is blocked because there's a merge conflict between the working copy in C:\Websites\Project and the update which needs resolved.

share|improve this answer
    
No merge or anything. Its simple commit with one test line changed in one file. You are saying its should work? Or its working for you. –  dynback.com Feb 11 '10 at 20:09
    
Saying it should work - don't have a Windows SVN environment to try it on. –  DaveG Feb 11 '10 at 20:32

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.