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

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

From: Vasanth Velusamy <vasanthv16_at_gmail.com>
Date: Tue, 2 Aug 2011 11:07:53 -0700 (PDT)

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

------------------------------------------------------
http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1047&dsMessageId=2808233

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subclipse.tigris.org].
Received on 2011-08-02 20:19:44 CEST

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.