| Summary: | Since 4b679b History View does not show branches and tags anymore | ||
|---|---|---|---|
| Product: | [Technology] EGit | Reporter: | Stefan Lay <stefan.lay> |
| Component: | UI | Assignee: | Matthias Sohn <matthias.sohn> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | P3 | CC: | matthias.sohn, sop |
| Version: | unspecified | ||
| Target Milestone: | 0.9.0-M2 | ||
| Hardware: | PC | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Stefan Lay
RevCommitList.fillTo() extracts the content out of the PlotWalk without calling next of PlotWalk. In instead uses RevWalk's internal mechanism with a Generator. Therefore determination of branches and tags in next() of PlotWalk is never called. How should this be fixed? See http://dev.eclipse.org/mhonarc/lists/jgit-dev/msg00538.html for proposed solution. Ina nutshell: Fix RevCommitList.fillTo() to use next() on the RevWalk Fixed by Change-Id Ic4bc49a0da90234271aea7c0a4e344a1c3620cfc http://egit.eclipse.org/r/#change,1299 doesn't fix bug 321502 since looking up the list of refs to show in the history view implemented in PlotWalk.getTags(AnyObjectId) fails to find the refs which are apparently in the list. We found that the failing hashmap lookup ends up calling RevObject.equals() which does a pointer comparison obviously failing to match the SWTCommit passed into PlotWalk.getTags(AnyObjectId) with the keys of the hashmap returned by Repository.getAllRefsByPeeledObjectId(). Any hints how to fix this ? We are lost in polymorphia ... pushed http://egit.eclipse.org/r/#change,1313 to fix this This is fixed. |