Eclipse Community Forums - RDF feed Eclipse Community Forums Building a complete Range Difference
i want to build a complete RangeDifference for a single file, stored in
SVN. I have to extract author, adds/changes/deletes, timestamp and
revision identifier in order to build a change histogram.

Thus I am using the Eclipse Team API and retrieve all revisions from the

revisions = history.getFileRevisions();

Next, I iterate from the back to the front and compare two neighbouring
revisions (except the first, that's a complete add). The Comparators are
the LineComparators taken from Eclipse's Compare.Internal.Merge (yah, bad
practice...). To initialize them, I have to access the contents, thus
retrieve the storage of a revision:

comparator = new LineComparator(revision.getStorage(progress));

RangeDifference[] differences = RangeDifferencer.findRanges(comparator,

My Problem: The retrieved contents of all revisions is the same (while
beeing different on svn). Looking into the instances of revision and
contributor (the one revision before) reveals that the remote object
inside is the same instance and has HEAD selected.

Am I using the API in a wrong way or is there some bug hidden? I hope you
can help me.


PS: I cannot depent up on subversive directly.]]>
Sebastian Jancke 2009-07-21T14:29:27-00:00
Re: Building a complete Range Difference workingcopy created by an undefined older version (sorry...) of
Subversive. A fresh checkout did the job. Described code works very well.

Sorry to bother you.

Sebastian Jancke 2009-07-21T14:46:54-00:00