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

Re: Renamed folder

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2007-01-03 18:57:13 CET

Dmitry Shechtman wrote:

> I just renamed a folder using 1.4.0. Although the folder appears
> subversioned in the shell, it’s been completely deleted from the repository!

I think this is what you did:

* rename folder 'folder' to 'folder_renamed' with explorer only, not
using the proper svn command.
* commit from the parent folder.
--> since you've renamed the folder without telling Subversion about it,
the original folder was shown in the commit dialog as "missing". When
you committed, Subversion automatically removed that folder (i.e. did a
proper 'delete' of it, because it was missing).

The renamed folder still appears to be versioned, because it still
contains the (hidden) .svn folder. Which means you now have basically
what's called a 'nested layout' in your working copy.

To recover from this:
* move the renamed folder somewhere safe, outside the working copy
* show the log dialog for the parent folder
* you will see a (maybe the last) commit where the original folder got
* right-click on that revision (top pane of log dialog), chose "revert
changes for this revision"


   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Wed Jan 3 18:57:28 2007

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.