Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 256644

Summary: [refresh] RSE Compare with should refresh file cache before opening compare editor
Product: [Tools] Target Management Reporter: Martin Oberhuber <mober.at+eclipse>
Component: RSEAssignee: David McKnight <dmcknigh>
Status: RESOLVED FIXED QA Contact: Martin Oberhuber <mober.at+eclipse>
Severity: normal    
Priority: P3 CC: kmunir
Version: 3.0Keywords: helpwanted
Target Milestone: 3.1 M7   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on: 180671    
Bug Blocks:    

Description Martin Oberhuber CLA 2008-11-26 09:42:26 EST
Just like we fixed the editor-open action to refresh remote files before loading into the editor on double click, we should also refresh the participants of a "Compare with...each other" operation before we open the compare viewer.

Otherwise, users easily look at (and potentially edit) files that are out-of-date compared to the actual remote system.

It should be possible to derive a fix for this from the corresponding fix for the editor.

Test case:
1. On an SSH connection, select 2 remote files,
2. right-click > compare with > each other
3. Change one or both of the files on the remote
4. right-click > compare with > each other again
--> Compare viewer is opened with the old, stale files.
Comment 1 David McKnight CLA 2009-03-23 12:21:44 EDT
The problem is that the cached version of the remote files were being used to compare timestamps - this version needs to be marked stale before downloading to ensure the actual remote file is retrieved.  I've committed a fix for this to cvs.