comparison src/org/tmatesoft/hg/repo/HgManifest.java @ 490:b3c16d1aede0

Refactoring: move HgRepository's implementation aspects to Internals (which is now its imlementation counterpart and primary repository class to be used by other parts of the library)
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 16 Aug 2012 17:08:34 +0200
parents 909306e412e2
children 5a455624be4f
comparison
equal deleted inserted replaced
489:9c0138cda59a 490:b3c16d1aede0
167 inspector.end(NO_REVISION); 167 inspector.end(NO_REVISION);
168 } 168 }
169 i++; 169 i++;
170 } while (manifestFirst == BAD_REVISION && csetFirst+i <= csetLast); 170 } while (manifestFirst == BAD_REVISION && csetFirst+i <= csetLast);
171 if (manifestFirst == BAD_REVISION) { 171 if (manifestFirst == BAD_REVISION) {
172 getRepo().getContext().getLog().dump(getClass(), Info, "None of changesets [%d..%d] have associated manifest revision", csetFirst, csetLast); 172 getRepo().getSessionContext().getLog().dump(getClass(), Info, "None of changesets [%d..%d] have associated manifest revision", csetFirst, csetLast);
173 // we ran through all revisions in [start..end] and none of them had manifest. 173 // we ran through all revisions in [start..end] and none of them had manifest.
174 // we reported that to inspector and proceeding is done now. 174 // we reported that to inspector and proceeding is done now.
175 return; 175 return;
176 } 176 }
177 i = 0; 177 i = 0;
616 for (int u : undefinedChangelogRevision) { 616 for (int u : undefinedChangelogRevision) {
617 Nodeid manifest = repo.getChangelog().range(u, u).get(0).manifest(); 617 Nodeid manifest = repo.getChangelog().range(u, u).get(0).manifest();
618 // TODO calculate those missing effectively (e.g. cache and sort nodeids to speed lookup 618 // TODO calculate those missing effectively (e.g. cache and sort nodeids to speed lookup
619 // right away in the #next (may refactor ParentWalker's sequential and sorted into dedicated helper and reuse here) 619 // right away in the #next (may refactor ParentWalker's sequential and sorted into dedicated helper and reuse here)
620 if (manifest.isNull()) { 620 if (manifest.isNull()) {
621 repo.getContext().getLog().dump(getClass(), Severity.Warn, "Changeset %d has no associated manifest entry", u); 621 repo.getSessionContext().getLog().dump(getClass(), Severity.Warn, "Changeset %d has no associated manifest entry", u);
622 // keep -1 in the changelog2manifest map. 622 // keep -1 in the changelog2manifest map.
623 } else { 623 } else {
624 changelog2manifest[u] = repo.getManifest().getRevisionIndex(manifest); 624 changelog2manifest[u] = repo.getManifest().getRevisionIndex(manifest);
625 } 625 }
626 } 626 }