Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Subversive » Building a complete Range Difference
Building a complete Range Difference [message #49821] Tue, 21 July 2009 14:29 Go to next message
Sebastian Jancke is currently offline Sebastian JanckeFriend
Messages: 2
Registered: July 2009
Junior Member
Hello,

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
IFileHistory:

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,
contributingComparator);


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.

Yours,
Sebastian

PS: I cannot depent up on subversive directly.
Re: Building a complete Range Difference [message #49851 is a reply to message #49821] Tue, 21 July 2009 14:46 Go to previous message
Sebastian Jancke is currently offline Sebastian JanckeFriend
Messages: 2
Registered: July 2009
Junior Member
Update: Seems like this is related to an "older" version of the
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
Previous Topic:Team -> Disconnect missing
Next Topic:Share Project Wizard - Simple vrs. Advanced Mode
Goto Forum:
  


Current Time: Fri Apr 26 06:56:26 GMT 2024

Powered by FUDForum. Page generated in 0.03224 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top