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

Re: locks get lost when renaming a file

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Fri, 20 Mar 2009 21:11:22 +0100

On Fri, Mar 20, 2009 at 18:21, Martin Bischoff <tinu44+tigris_at_gmail.com> wrote:
> (reposted with some additional info, please ignore my other mail)
>
> In my repository, I have some word documents with the "svn:needs-lock" property. When I get a lock for one of the documents, make some modifications and then "SVN rename" the file, then the lock seems to be lost (the file is read-only again).
>
> If I now commit the renamed file, then the repository shows that I have two files in the repository
> - the one with the old name (still locked)
> - the new one

your second part is a classic user error:
a rename in svn is a delete of the original file and an add of the new
(renamed) file. You must commit *both*, not just the added new file -
otherwise the deletion of the old file is not committed and therefore
still in the repository.

Stefan

-- 
       ___
  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=1366894
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2009-03-20 21:11:42 CET

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.