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

RE: Accidentally deleted main trunk in repository

From: Robert Lewis <robert.lewis_at_imnmicrocontrol.com>
Date: Wed, 18 Aug 2010 15:21:16 -0700

Hi Daniel


I have tried your suggestion and was able to revert the last version after
the deletion but before the version I want. I can see 73 and 75 but no 74
now. But I cannot revert the version that contains the deletion which is 75.


I get an error


File not found: revision 74, path '/trunk'


I get the same error if I try to make a new copy, revert, switch versions,


I can't even add in a new folder. For some reason, TortoiseSVN deleted the
folder trunk when I was under a different folder and now won't allow me to
go back to before the deletion.


What would be the best plan now? Export to a flat directory and create a new
repository and start over?


I can't see a way to get out of this endless loop.


Thanks for all the suggestions





From: Daniel Becroft [mailto:djcbecroft_at_gmail.com]
Sent: Tuesday, August 17, 2010 11:40 PM
To: users_at_tortoisesvn.tigris.org
Subject: Re: Accidentally deleted main trunk in repository


On Wed, Aug 18, 2010 at 4:30 PM, Robert Lewis
<robert.lewis_at_imnmicrocontrol.com> wrote:

Thank you for your reply, Jean-marc.

I have not committed but I still cannot revert to the version before the
delete. 75 was the delete, 74 was the folder addition, 73 is the last good
working revision.

I can however checkout version 73 which was the last good version. I can see
the history up to 75 under the top level repo folder, but I can't get back
the main development folder which was lost after version 74. If I could
delete version 74, and 75 I think it would work. But there is no delete
option in the repo browser, nor in the log messages. I have tried the revert
under the working directory without success. I can go directly to the repo
and put in 73 as the Head and see the folder /trunk but there is no way to
delete 74 or 75.


If you can see an entry in the Log for the deletion of /trunk, then you have
committed the delete.

To restore /trunk:
1) Open the repository browser to the last good revision (r73) in your case.
2) Right-click on /trunk in the tree-view, and select "Copy to ...".
3) In the New name field, change the name (and then back again) to enable
the OK button.
4) Click OK. Enter a log message, and Click OK.

/trunk will now be available in HEAD, with history.

Daniel B.


-----Original Message-----
From: Jean-Marc van Leerdam [mailto:j.m.van.leerdam_at_gmail.com]
Sent: Tuesday, August 17, 2010 11:09 PM
To: users_at_tortoisesvn.tigris.org
Subject: Re: Accidentally deleted main trunk in repository


On 18 August 2010 07:57, Robert Lewis <robertlewis480331_at_gmail.com> wrote:
> I had created a branch and wanted to delete it. So I clicked on it, rt
> clicked and said delete. But my main development stream was deleted,
> trunk. Is there anyway to get it with the history back? I have the
> latest working directory but can't see anyway to undo shooting myself
> in the head.

If you have not committed: just do a revert on the workign copy.

If you have committed: Start the repository browser, change to the revision
prior to the committed delete and your trunk should be visible again. You
should be able to pull that version into your working copy & commit again.
(sorry for not being able to provide an exact recipe at the moment, I do not
have TSVN available on my current environment).

The TSVN manual probably provides some pointers too on how to undo changes
from a specific revision.

Good luck.

.       ___
.  @@  // \\      "De Chelonian Mobile"
. (_,\/ \_/ \     TortoiseSVN
.   \ \_/_\_/>    The coolest Interface to (Sub)Version Control .   /_/
\_\     http://tortoisesvn.net
2648096> &dsMessageId=2648096
To unsubscribe from this discussion, e-mail:
2648108> &dsMessageId=2648108
To unsubscribe from this discussion, e-mail:
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-08-19 00:22:21 CEST

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.