Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 41513 - [Operations] Inconsistent "Replace With..." menu item after error
Summary: [Operations] Inconsistent "Replace With..." menu item after error
Status: RESOLVED DUPLICATE of bug 42509
Alias: None
Product: Platform
Classification: Eclipse Project
Component: CVS (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: platform-cvs-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-13 15:56 EDT by Eric Kaplan CLA
Modified: 2006-06-15 16:05 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 Eric Kaplan CLA 2003-08-13 15:56:37 EDT
Here is the scenario.
I said Replace With->Another Branch or Version..., and then chose a specific 
branch (Call it branch_3_4).  In the middle of replacing, I got an error 
message complaining about a file it tried to write and couldn't.  That's fine, 
removed the local file.  Chose Replace With->Latest From Branch branch_3_4 this 
time and it seemed to finish with no errors.  However, I noticed that one of 
the files I was working on in what I now thought was the branch was actually a 
file from HEAD!!!  
I then said Replace With->Another Branch or Version... and chose branch_3_4, 
and this time it seems to be the right version.
The problem seems to be that if an error occurs on replace with, eclipse winds 
up in an inconsistent state.  This bug could be disastrous, as we need to patch 
a release and if I didn't notice the problem I could have gotten files from 
HEAD out into production unintentionally!!!
Please advise.

Regards
Comment 1 Jean-Michel Lemieux CLA 2003-09-17 21:49:56 EDT
The implementation of the replace with is not done in a two stage commit. To
undo, we would have to perform another replace.

I agree that it should be *much* more obvious that your project is in an
inconsistent state when the operation fails.
Comment 2 Jean-Michel Lemieux CLA 2004-06-11 16:49:17 EDT
Post 3.0
Comment 3 Michael Valenta CLA 2006-06-15 16:05:59 EDT

*** This bug has been marked as a duplicate of 42509 ***