Mercurial > hg4j
comparison src/org/tmatesoft/hg/repo/HgBranches.java @ 432:1fc0da631200
Revlog.ParentWalker helper class got promoted as TLC, renamed to HgParentChildMap
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Fri, 30 Mar 2012 16:22:51 +0200 |
parents | 9c9c442b5f2e |
children | be697c3e951e |
comparison
equal
deleted
inserted
replaced
431:12f668401613 | 432:1fc0da631200 |
---|---|
127 ps.start(1 + repo.getChangelog().getRevisionCount() * 2); | 127 ps.start(1 + repo.getChangelog().getRevisionCount() * 2); |
128 // | 128 // |
129 int lastCached = readCache(); | 129 int lastCached = readCache(); |
130 isCacheActual = lastCached == repo.getChangelog().getLastRevision(); | 130 isCacheActual = lastCached == repo.getChangelog().getLastRevision(); |
131 if (!isCacheActual) { | 131 if (!isCacheActual) { |
132 final HgChangelog.ParentWalker pw = repo.getChangelog().new ParentWalker(); | 132 final HgParentChildMap<HgChangelog> pw = new HgParentChildMap<HgChangelog>(repo.getChangelog()); |
133 pw.init(); | 133 pw.init(); |
134 ps.worked(repo.getChangelog().getRevisionCount()); | 134 ps.worked(repo.getChangelog().getRevisionCount()); |
135 // first revision branch found at | 135 // first revision branch found at |
136 final HashMap<String, Nodeid> branchStart = new HashMap<String, Nodeid>(); | 136 final HashMap<String, Nodeid> branchStart = new HashMap<String, Nodeid>(); |
137 // last revision seen for the branch | 137 // last revision seen for the branch |