[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: William Ferguson <william.ferguson_at_hubbub.com.au>
Date: 2005-06-09 02:21:11 CEST

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:23:34 2005

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.