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

Re: [Subclipse-users] Subclipse question

From: Mark Phippard <markp_at_softlanding.com>
Date: 2006-04-26 22:04:31 CEST

"Anthony Guselnikov" <anthony.guselnikov@riskmetrics.com> wrote on
04/26/2006 03:58:12 PM:

> I'm having a problem with subclipse plug-in, and I'm trying to figure
out if
> it justifies filing a bug report.
>
> Whenever I copy and paste a resource into a Java package subclipse
marks
> the files that I paste as deleted (with a red "X"),
> and then after I commit, it marks them as as new (with a question mark).
The
> same doesn't happen when I import the same
> resource from a file system.
>
> For example, say I have a sample.properties file in com.abc package in
> project A, and sample.properties file in com.xyz package in project B.
> If I copy this sample.properties in project A and paste it into com.xyz
> package in project B, if com.xyz already has sample.properties file, and
the file
> is subversion-controlled, subclipse will mark the file with a red "X".
> If, on the other hand I import from a file system by right clicking on
the
> com.xyz package and selecting (Import/File System), subversion will
proceed
> to mark the file as
> changed.

This is really an Eclipse issue, although I do not believe they consider
this a
bug. As a Team Provider, Subclipse implements a Team API called the
MoveDeleteHook. Eclipse then tells us when a file is deleted so that we
run svn
delete. That is what is happening here. It is impossible for us to know
that
this should not really be a delete. What need to happen is for Eclipse to
not
tell us it is a delete.

Subclipse does support a Subversion property named DeferFileDelete. You
can set
this in one of your project folders and it makes our MoveDeleteHook not
run the
svn delete command when Eclipse tells us a file is deleted. So that fixes
this
problem. If you have this property set and you really delete a file, then
all
you have to do is bring up the Commit dialog. The file will show as
status
"missing" and if you select it as part of the Commit, it will be
committed. You
can also mark the file as deleted from the Show Pending Operations view.

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 Wed Apr 26 22:04:42 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.