Hi everyone!
I want to lock a file within my svn client so that only one
user (client) has write access. I'm a bit confused about the
API description tho:
lock( url_or_path,
lock_comment,
force=False )
Does this mean I can pass a URL (to a file on the repository
I guess) OR a path (to a file on the working copy)? But
where's the difference then?
If I give a path to a file in the working copy I can indeed
lock the file (and other clients, like Tortoise for windows
see this file correctly as locked). If I specifiy a URL to a
file in the repo I get the following error:
Code: 175002 Message: Lock request failed: 405 Method Not
Allowed (http://schbna6001)
Another thing is:
If I lock the file by giving a path and then another client
attempts to lock that file as well no exception is thrown
for that client!
Would be nice if someone could clarify the lock API for me
Greetings
Dominique
------------------------------------------------------------
---------
To unsubscribe, e-mail: users-unsubscribe pysvn.tigris.org
For additional commands, e-mail: users-help pysvn.tigris.org
|