Bug 2790 - [Workbench] Replacing from local history multiple times creates more versions (1GK0DE3)
Summary: [Workbench] Replacing from local history multiple times creates more versions...
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 2.0   Edit
Hardware: All Windows NT
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: DJ Houghton CLA
QA Contact:
URL:
Whiteboard:
Keywords: investigate
Depends on:
Blocks:
 
Reported: 2001-10-10 22:43 EDT by Karice McIntyre CLA
Modified: 2002-09-05 15:26 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karice McIntyre CLA 2001-10-10 22:43:37 EDT
STEPS:
WHen I do multiple consecutive Replace With -> Local History operations, 
more "editions" (timestamps) are created in the local history, even though 
I didn't make any changes and save them in the interim.

*In a java project in the Resource perspective, create a new file named Moo.java.
*In the Moo.java editor paste the following and save:
public class Moo {
      private int y;
      public Moo() {
      }
      public void doThis() {
      }
      abstract public void doThat();
      public int getX() {
       return x;
      }
     }
At this point there should be two versions visible in the local history, 
one with an empty class def, and one with the class def shown above.

*In the text editor, delete the following line and then save:
      abstract public void doThat();
Now there are 3 versions in the local history.

*In Nav, select the file and do Replace with -> Local History
Select the previous version.  I think this is when the extra version 
gets created but you will not see this until after the next step.

*Do another Replace with -> Local History
Select the top version.

BUG:
Now Select Replace with -> Local history and look at the number 
 of versions in the list - it has increased by one!  The top 2 versions are 
 the same code.  I haven't saved anything new since I started doing the Replace
with operations.

If you keep doing 'Replace with -> Local History', you get a new version after every 
second 'Replace with' you do.

NOTES:

KM (09/17/01 2:29:51 PM)
	Moving to ITPUI.
Comment 1 DJ Houghton CLA 2001-10-29 19:16:52 EST
PRODUCT VERSION:
eclipse sdk 135 winnt 4.0

Comment 2 Kevin Haaland CLA 2002-05-30 20:27:55 EDT
Defer
Comment 3 Randy Giffen CLA 2002-08-08 15:45:20 EDT
Still occurs. Reopen for investigation.
Comment 4 Eduardo Pereira CLA 2002-09-05 14:45:55 EDT
Moving to Core for comments
Comment 5 DJ Houghton CLA 2002-09-05 15:26:20 EDT
I believe that what is being asked is that file contents should not be stored 
in local history if they already exist there. Unfortuanatly we do not know 
whether or not a file's contents were retrieved from local history or some 
other means.

Potentially we (core, the editor, compare, etc) could try and keep track of 
this kind of information but it would be very easy for this information to 
become out of sync with the actual contents of the local history since the 
local history can be flushed/pruned at any point in time based on a number of 
different policy settings.

Closing as WONTFIX.