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

Re: [Subclipse-users] Delete after copy

From: Mark Phippard <markp_at_softlanding.com>
Date: 2006-06-11 20:07:50 CEST

Aaron Digulla <digulla@hepe.com> wrote on 06/11/2006 01:56:59 PM:

> The "delete after copy" bug is still in Subclipse 1.0.2. To reproduce:
>
>
> delete --force ...file...
>
> Now, I can revert the delete using Team/Revert...
>
> but there is no way to copy a file with Eclipse.
>
> I've tried this on Windows and Linux.
>
> The same happens when I drag&drop the file in Eclipse or when I drop a
> file from the Windows Explorer.
>
> Is this fixed in the development version?

As far as I am concerned, this is still an Eclipse bug, although I do not
think they consider it to be a bug. When you do the Copy & Paste within
Eclipse (or drag and drop) when the paste/drop occurs, Eclipse fires the
MoveDeleteHook. I do not know why it does this, but there is no way for
us in this event to know that it is a paste/drop and not just a delete.

When I do this, I have never seen it happen when dragging & dropping from
Windows Explorer into Eclipse. That is usually the workaround that I will
use.

If it is something you do a lot, there is a workaround that we have had
built into Subclipse since well before 1.0.0. Add the SVN Property
"DeferFileDelete" with a value of true to any parent folder of where you
drop. When this is set, the MoveDeleteHook will ignore the event. I have
some projects where I set this on the "lib" folder because I frequently
copy updated JAR's into that folder. I would not recommend setting the
file project-wide unless you almost never do deletes. That being said,
Subclipse will handle it if you do. The file will be marked as "missing"
in its Subversion status and will show up in the Synch view and Commit
dialog so that you can commit it as a delete. The one "problem" is that
if you were to do a project/folder update, then Subversion will restore
any files that it thinks are missing. So you just have to be sure to
commit the deletes before doing an update.

Mark

_____________________________________________________________________________
Scanned for SoftLanding Systems, Inc. and SoftLanding Europe Plc by IBM Email Security Management Services powered by MessageLabs.
_____________________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subclipse.tigris.org
For additional commands, e-mail: users-help@subclipse.tigris.org
Received on Sun Jun 11 20:08:07 2006

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.