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

Re: Locking in SVN 1.2.0

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2005-06-09 02:45:36 CEST

Perhaps you can step through the svn_ra_lock() call with a debugger,
and figure out why the repository is throwing that error?

On Jun 8, 2005, at 5:21 PM, William Ferguson wrote:

> I'm writing code against SVN_RA.
> I'm not using the SVN command-line client, so I can't give you a
> command-line transcript.
>
>
> However, executing the following code:
> svn_ra_lock(userASession, resourceDefinitionHash, "locking
> comment", FALSE
> /* steal lock */, lockingCallbackFunc, lockBaton, memoryPool);
>
> svn_ra_unlock(userASession, resourceDefinitionHash, "unlocking
> comment",
> FALSE /* steal lock */, lockingCallbackFunc, lockBaton, memoryPool);
>
> Gives:
>
>
>> No lock on path
>>
> '/trunk/SubVersionRA/testdata/locking/random-326047563.txt'
>
>> in filesystem 'D:/Tools/SubVersion/SubVersionRA-TestRepository/db'
>>
>
> Where '/trunk/SubVersionRA/testdata/locking/random-326047563.txt'
> is the
> sole resource provided to the lock/unlock functions.
>
>
> William
>
>
> -----Original Message-----
> From: Ben Collins-Sussman [mailto:sussman@collab.net]
> Sent: Thursday, 9 June 2005 3:37 AM
> To: William Ferguson
> Cc: 'users@subversion.tigris.org'
> Subject: Re: Locking in SVN 1.2.0
>
>
>
> On Jun 7, 2005, at 10:56 PM, William Ferguson wrote:
>
>
>> I'm having a couple of problems using the new locking functionality.
>>
>> 1) I can't seem to unlock a locked Resource. ie
>> UserA locks Resource1.
>> UserA (new RA session) unlocks Resource1 - this fails with:
>> No lock on path '/trunk/SubVersionRA/testdata/locking/
>> random-326047563.txt'
>> in filesystem 'D:/Tools/SubVersion/SubVersionRA-TestRepository/db'
>>
>
> Are you using TSVN here? If not, can you show us a commandline
> transcript of your exact commands and results that demonstrate the
> problem?
>
>
>>
>> 2) I can't seem to update a Resource on which I own a lock. ie
>> UserA locks Resource1
>> UserA (new RA session) gets a commit_editor and updates the
>> content of
>> Resource1 - this fails with:
>> Cannot verify lock on path
>> '/trunk/SubVersionRA/testdata/locking/random-1652950827.txt'; no
>> matching
>> lock-token available
>>
>
>
> Same here. Your descriptions need to be more specific.
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jun 9 02:47:56 2005

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