tags:

views:

11

answers:

1

I have installed visual SVN server on windows XP.(Authentication method - windows login). I edited the pre-lock.cmd script and put a comment line, "REM do nothing". Next I tried to get a lock on a file. Everything works great uptil this point! . Then I try to release the lock and get the following error "Server sent unexpected return value (400 Bad Request) in response to UNLOCK". Please note I do not have any pre/post unlock scripts in place. I am using the tortoise SVN client. I have tried the lock/unlock routine without the pre-lock hook and it works fine.

Any insight on why this must be happening will be helpful.

A: 

You have to put a line like

exit 0

in your pre-lock.bat script (not sure if *.cmd scripts work, but *.bat files do).

Also the "bad request" error could be because a firewall/router/virus scanner doesn't allow (or know) DAV requests.

Stefan