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

RE: TSVN delete with "keep locks"

From: Shakespeare, Simon \(Pensions\) <Simon.Shakespeare_at_capita.co.uk>
Date: 2006-08-17 09:55:33 CEST

> -----Original Message-----
> From: Dan [mailto:svn@digidescorp.com]
> Sent: 16 August 2006 22:40
> To: users@tortoisesvn.tigris.org
> Subject: TSVN delete with "keep locks"
>
>
> I think that this is a bug in Subversion itself, but was using TSVN.
>
> Subversion seems to remember locks after deleting a file, if the file
> was locked when it was committed, and "keep locks" was selected.
>
> Versions: client: TSVN 1.3.5 or 1.4.0RC1, server: Subversion 1.3.2 on
> Apache 2.0.55.
>
> Summary/Recipe:
>
> 1) Add file (needs-lock).
>
> 2) Commit file.
>
> 3) Lock file.
>
> 4) Delete file (TSVN delete).
>
> 5) Commit with "keep lock".
>
> 6) Add a new file with same name (needs lock).
>
> 7) Commit file -- fails because "File 'xxx' already exists".
>
> Work-around:
>
> A) Update to revision (when file existed).
>
> B) Check for modifications (on server).
>
> C) Right-click and "break lock".
>
> It seems like this would be common enough that it would have
> been found
> already, but I haven't found a specific reference to it.
> It's not a big
> problem, but it is annoying.
>
> Thanks in advance for any info/advice. (Is this known? Fixed in SVN
> 1.4? Or maybe not?)
>
> Also, is there a way to have "keep locks" set by default in
> the commit
> dialog?
>

Hi Dan - I had this problem also - see thread below..

> > Hi - There's an o/s bug which is that when you delete a
> file & set keep-locks
> > on the commit then the lock token remains on the deleted file.
> >
> > I now need that file again & can revert the deletion but
> can't commit
> > because of the lock token problem. Is there any way I can
> remove whatever
> > causes the problem so I can commit.
> > I get a "cannot verfiy lock on path ... no matching lock
> token available"
> > error.
> >
> > http://subversion.tigris.org/issues/show_bug.cgi?id=2507
>
> Unfortunately, you need the svn client to recover from this:
> svn unlock --force url/to/nonexisting/file
>
> Stefan
>
Great - That worked fine - Thanks for the quick reply - Regards Simon

**********************************************************************************
This email and any files transmitted with it are confidential, and may be subject to legal privilege, and are intended solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error or think you may have done so, you may not peruse, use, disseminate, distribute or copy this message. Please notify the sender immediately and delete the original e-mail from your system.

Computer viruses can be transmitted by e-mail. Recipients should check this e-mail for the presence of viruses. The Capita Group and its subsidiaries accept no liability for any damage caused by any virus transmitted by this e-mail.
***********************************************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Thu Aug 17 09:55:57 2006

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

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