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

RE: Lock problem

From: Anthony Muller <Anthony.Mueller_at_hyperoffice.fr>
Date: 2005-06-23 11:47:54 CEST

Ok. So, I have an up-to-date copy of a file named 'project.xml' in my working copy, into a folder named 'project'.

* Locking the file:
.../project> svn update project.xml
.../project> svn lock project.xml
.../project> svn status -u -v project.xml
        K 63 63 anthony project.xml
Status against revision: 63

Here, everything is ok.

* Now I delete locally the whole folder 'project':

* I update the working copy using the 'update' command in the folder which contained the deleted 'project' folder:

...> svn update .

Subversion is getting:
'project/'
'project/project.xml'

Here, everything is ok too :-)

* Now try to look at the lock:
...> cd project
.../project> svn status -u -v project.xml
        0 63 63 anthony project.xml
Status against revision: 63

As you can see, status information is not correct be cause I looked the file.

Regards,
Anthony

-----Message d'origine-----
De : Peter N. Lundblad [mailto:peter@famlundblad.se]
Envoyé : jeudi 23 juin 2005 10:57
À : Anthony Muller
Cc : svn-users group
Objet : Re: Lock problem

On Thu, 23 Jun 2005, Anthony Muller wrote:

> 1) update a file 'foo.txt'
> 2) lock 'foo.txt'
> 3) when I look at lock owner in TortoiseSVN or using JavaSVN client, it
> is ok ('anthony')
>
> 4) locally delete the file (not using the subversion command)
> 5) update 'foo.txt' to get it again
>
> 6) look at look owner : no lock owner :o/
>
I ca't reproduce this using the command line client (on Linux, but I don't
think that matters). Could you try with the command line client and
produce a complete recipe?

> So, I'm trying to get a lock on the file => "Unable to lock because the
> file is already locked by 'anthony'"...
>
You have to steal the lock in such a case. (This can happen when you
switch to another working copy etc as well.) Don't know how to steal a
lock in TSVN.

Regards,
//Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jun 23 11:49:58 2005

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