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

Re: Locking and svnra_svn/svnserve

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2004-11-29 00:02:28 CET

On Nov 28, 2004, at 3:33 PM, Peter N. Lundblad wrote:
>
> - I assume current_token can be NULL for ra->lock if you don't have a
> okten. This isn't celar from the docstring. Also, what happens if your
> token is wrong, but the username matches?
>

Yes, the 'current_token' parameter is only used to refresh an existing
lock. otherwise, it's not needed at all. If the token doesn't match
the existing lock on theh path, then your refresh attempt fails. See
svn_fs_lock(): it actually answers your question. I wasn't sure how
much detail to copy from svn_fs.h to svn_ra.h. :-)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Nov 29 00:03:53 2004

This is an archived mail posted to the Subversion Dev mailing list.