Community
Participate
Working Groups
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
Created attachment 131540 [details] fix Not sure if the attached patch is the right fix but it solved the problem for me.
Created attachment 131541 [details] mylyn/context/zip
Igor, any comment on this? This bug currently blocks integration of Subversive with the Atlassian Eclipse connector.
(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.