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

Re: [Subclipse-users] Copying a file over an existing file removes from repository

From: Mark Phippard <markphip_at_gmail.com>
Date: 2007-05-03 14:03:46 CEST

On 5/3/07, Jens Henrik Gabe <jhg@ice.dk> wrote:
>
> When overwriting (copy over) a file in Eclipse, the file is marked as
> deleted from repository.
> In the sync view, it is shown as an DELETE update FROM the repository (blue
> arrow with white minus), not a delete I have performed.
> The file is still available in the package explorer, and can be edited? (But
> still shown as deleted from repo.)
>
> If instead you overwriting the file outside Eclipse, and then refreshing the
> file works perfectly - The file is shown as updated.

This is an Eclipse issue. When you copy & paste or drag and drop
within Eclipse it tells us that the file is deleted. If you are on
Windows and do the drag and drop from Windows Explorer into Eclipse it
does not do this and it works fine. LIkewise, if you do it all in
Windows and just refresh it does not do it either.

If this is something you do a lot, we coded a workaround to tell us to
ignore the delete. You can add a Subversion property with the name
"DeferFileDelete" with a value of "true" to a parent folder of the
location where you do this. For example, if this is a "lib" folder
that contains JAR's. When this property is set, we ignore all Delete
events and just deal with it at Commit/Synchronize time. If the file
was really deleted, it will show as "missing" and can be deleted on
the fly as part of the commit. If the file was replaced, it will just
show as a modification.

-- 
Thanks
Mark Phippard
http://markphip.blogspot.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subclipse.tigris.org
For additional commands, e-mail: users-help@subclipse.tigris.org
Received on Thu May 3 14:03:57 2007

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.