I want to:
- update the file to a certain revision
- lock the working copy so no one else can update or modify it
- run a compile script (seperate to svn and quite slow)
- unlock file so other users can modify again
this is what I wrote (in windows command line syntax):
svn update file.cpp --force -r 320
svn lock file.cpp
Call CompileScript.exe
svn unlock file.cpp
However unfortunately another user ran an update on file.cpp whilst I was compiling, and it reverted to the latest version in the repository again i.e. it wasn't stopped by the lock.
Is there any way of locking the working copy so this doesn't happen?