Login | Register
My pages Projects Community openCollabNet

Discussions > users > [Subclipse-users] Problems related to overwriting / replacing file in eclipse

subclipse
Discussion topic

There will be a brief maintenance window every Friday at 17:00 Pacific.
For further details, see CollabNet's maintenance and upgrade policy.

Back to topic list

[Subclipse-users] Problems related to overwriting / replacing file in eclipse

Author vasanthv16
Full name Vasanth Velusamy
Date 2011-08-02 11:07:53 PDT
Message There is a known issue that when you replace a file in eclipse (that is version controlled with svn), subclipse marks the file as deleted and not as modified. This has already been discussed elsewhere in the mailing list.

Keeping that issue aside, when you then do Team > Synchronize with Repository, the file first shows up in the Synchronize View as a delete (in the wrong direction) and on subsequent synchronization, does not show up at all.

Here are the steps to reproduce:

(1) Checkout a project from svn, in eclipse.
(2) Do Team > Synchronize with Repository.
   (a) There would be no changes at this point, in the Synchronize View.
(3) Copy FileA from FolderX to FolderY.
   (a) This will add one change to the Synchronize View. (this is just a setup step).
(4) Copy FileA from FolderY back into FolderX. This will ask you whether you want to replace existing file. Click Continue.
   (a) This shows the first issue. FileA is marked as deleted in the Project Explorer View. This is a known issue.
   (b) Note that Synchronize View shows one more change. It will show FileA as being deleted, but the icon is wrong. The file will be shown as if it is an *incoming* deletion, not an outgoing deletion.
(5) Do a Team > Synchronize with Repository again.
   (a) Note that the file deletion shown in the Synchronize View is now gone. The change referred to in (4-b) is not shown anymore (for FileA in FolderX).

To overcome the known issue in (4-a), we thought of informing our users to look out for spurious deletions in the Synchronize view, on synchronization. But the issues in (4-b) and (5-a) make that difficult.

Thanks,
Vasanth

« Previous message in topic | 1 of 6 | Next message in topic »

Messages

Show all messages in topic

[Subclipse-users] Problems related to overwriting / replacing file in eclipse vasanthv16 Vasanth Velusamy 2011-08-02 11:07:53 PDT
     RE: [Subclipse-users] Problems related to overwriting / replacing file in eclipse selsemore Stephen Elsemore 2011-08-02 14:02:30 PDT
         Re: [Subclipse-users] Problems related to overwriting / replacing file in eclipse jcompagner jcompagner 2011-08-03 08:39:45 PDT
             Re: [Subclipse-users] Problems related to overwriting / replacing file in eclipse markphip Mark Phippard 2011-08-03 08:54:12 PDT
         RE: [Subclipse-users] Problems related to overwriting / replacing file in eclipse vasanthv16 Vasanth Velusamy 2011-08-03 08:45:33 PDT
             Re: [Subclipse-users] Problems related to overwriting / replacing file in eclipse markphip Mark Phippard 2011-08-03 08:52:50 PDT
Messages per page: