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

Re: Restoring deleted files

From: Mark Phippard <MarkP_at_softlanding.com>
Date: 2005-10-04 14:51:24 CEST

micampe@gmail.com wrote on 10/04/2005 06:43:52 AM:

> I'm lost... how do I recover a file I previously deleted in subclipse?
> With CVS I had "Restore from repository...", I'm probably missing
> something obvious...

If you have not committed the delete to the repository, then select a
parent folder and choose Team -> Revert.

If you have committed the delete, then you can get it back by doing a
"reverse merge". Right-click on the project and do Team -> Merge. Click
the Show Log button and select the revision in which you committed the
delete. Let's say it was revision 100. When you click OK with revision
100 selected, you will get the From revision filled in as 99 and To
revision as 100. Since you really want to undo revision 100, you want to
reverse those. So that the From revision is 100 and the To revision is
99. Then click OK. If that commit included other changes that you do not
want to "undo", then just use Team -> Revert to remove those changes from
your working copy.

Once you have things the way you want them, be sure to commit.

This technique can be used to undo any committed change, not just a
delete.

For more info on reverse merge:

http://svnbook.red-bean.com/en/1.1/ch04s04.html#svn-ch-4-sect-4.2

The same info is also available if you press F1 with the merge dialog open
and then click into the help.

Mark

_____________________________________________________________________________
Scanned for SoftLanding Systems, Inc. and SoftLanding Europe Plc by IBM Email Security Management Services powered by MessageLabs.
_____________________________________________________________________________
Received on Tue Oct 4 22:51:24 2005

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

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