Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 271931 - SVNRemoteResourceRevision always returns content of latest revision
Summary: SVNRemoteResourceRevision always returns content of latest revision
Status: RESOLVED FIXED
Alias: None
Product: Subversive
Classification: Technology
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Igor Burilo CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-10 23:11 EDT by Steffen Pingel CLA
Modified: 2011-05-18 06:48 EDT (History)
2 users (show)

See Also:


Attachments
fix (1.15 KB, patch)
2009-04-10 23:13 EDT, Steffen Pingel CLA
i.vinnykov: iplog+
Details | Diff
mylyn/context/zip (1.07 KB, application/octet-stream)
2009-04-10 23:13 EDT, Steffen Pingel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steffen Pingel CLA 2009-04-10 23:11:33 EDT
I am trying to retrieve the contents of a specific revision of a file through IFileHistoryProvider. The following code works fine for CVS where "revisionString" is a revision that is older than the latest revision in the repository:

RepositoryProvider rp = RepositoryProvider.getProvider(project);
IFileHistoryProvider historyProvider = rp.getFileHistoryProvider();
IFileHistory fileHistory = historyProvider.getFileHistoryFor(resource, IFileHistoryProvider.NONE, monitor);
IFileRevision revision = fileHistory.getFileRevision(revisionString);
IStorage storage = revision.getStorage(monitor);

With Subversive storage.getContents() always returns the contents of trunk regardless of the specified "revisionString".

Environment: Eclipse 3.5M6, Subversive 0.7.6
Comment 1 Steffen Pingel CLA 2009-04-10 23:13:24 EDT
Created attachment 131540 [details]
fix

Not sure if the attached patch is the right fix but it solved the problem for me.
Comment 2 Steffen Pingel CLA 2009-04-10 23:13:27 EDT
Created attachment 131541 [details]
mylyn/context/zip
Comment 3 Steffen Pingel CLA 2009-04-27 14:55:46 EDT
Igor, any comment on this? This bug currently blocks integration of Subversive with the Atlassian Eclipse connector.
Comment 4 Igor Burilo CLA 2009-04-28 05:04:37 EDT
(In reply to comment #3)
> Igor, any comment on this? This bug currently blocks integration of Subversive
> with the Atlassian Eclipse connector.
Steffen, thanks a lot for provided patch, I applied it with little modifications.