comparison src/org/tmatesoft/hg/internal/RevisionDescendants.java @ 450:03fd8d079e9c smartgit3

Share PhasesHelper instance among few HgChangesets (mostly affects HgChangesetTreeHandler case)
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 07 Jun 2012 17:06:23 +0200
parents 5787e912f60e
children 7bcfbc255f48
comparison
equal deleted inserted replaced
449:5787e912f60e 450:03fd8d079e9c
52 } 52 }
53 53
54 public void build() throws HgInvalidControlFileException { 54 public void build() throws HgInvalidControlFileException {
55 final BitSet result = descendants; 55 final BitSet result = descendants;
56 result.set(0); 56 result.set(0);
57 if (rootRevIndex == tipRevIndex) {
58 return;
59 }
57 repo.getChangelog().walk(rootRevIndex+1, tipRevIndex, new HgChangelog.ParentInspector() { 60 repo.getChangelog().walk(rootRevIndex+1, tipRevIndex, new HgChangelog.ParentInspector() {
58 // TODO ParentRevisionInspector, with no parent nodeids, just indexes? 61 // TODO ParentRevisionInspector, with no parent nodeids, just indexes?
59 62
60 private int i = 1; // above we start with revision next to rootRevIndex, which is at offset 0 63 private int i = 1; // above we start with revision next to rootRevIndex, which is at offset 0
61 public void next(int revisionIndex, Nodeid revision, int parent1, int parent2, Nodeid nidParent1, Nodeid nidParent2) { 64 public void next(int revisionIndex, Nodeid revision, int parent1, int parent2, Nodeid nidParent1, Nodeid nidParent2) {