Mercurial > jhg
diff 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 |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/RevisionDescendants.java Thu Jun 07 16:01:09 2012 +0200 +++ b/src/org/tmatesoft/hg/internal/RevisionDescendants.java Thu Jun 07 17:06:23 2012 +0200 @@ -54,6 +54,9 @@ public void build() throws HgInvalidControlFileException { final BitSet result = descendants; result.set(0); + if (rootRevIndex == tipRevIndex) { + return; + } repo.getChangelog().walk(rootRevIndex+1, tipRevIndex, new HgChangelog.ParentInspector() { // TODO ParentRevisionInspector, with no parent nodeids, just indexes?