Mercurial > jhg
comparison src/org/tmatesoft/hg/internal/ManifestRevision.java @ 538:dd4f6311af52
Commit: first working version
| author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
|---|---|
| date | Tue, 05 Feb 2013 22:30:21 +0100 |
| parents | 5a455624be4f |
| children | 7743a9c10bfa |
comparison
equal
deleted
inserted
replaced
| 537:5a455624be4f | 538:dd4f6311af52 |
|---|---|
| 13 * For information on how to redistribute this software under | 13 * For information on how to redistribute this software under |
| 14 * the terms of a license other than GNU General Public License | 14 * the terms of a license other than GNU General Public License |
| 15 * contact TMate Software at support@hg4j.com | 15 * contact TMate Software at support@hg4j.com |
| 16 */ | 16 */ |
| 17 package org.tmatesoft.hg.internal; | 17 package org.tmatesoft.hg.internal; |
| 18 | |
| 19 import static org.tmatesoft.hg.repo.HgRepository.NO_REVISION; | |
| 18 | 20 |
| 19 import java.util.Collection; | 21 import java.util.Collection; |
| 20 import java.util.TreeMap; | 22 import java.util.TreeMap; |
| 21 | 23 |
| 22 import org.tmatesoft.hg.core.Nodeid; | 24 import org.tmatesoft.hg.core.Nodeid; |
| 34 public final class ManifestRevision implements HgManifest.Inspector { | 36 public final class ManifestRevision implements HgManifest.Inspector { |
| 35 private final TreeMap<Path, Nodeid> idsMap; | 37 private final TreeMap<Path, Nodeid> idsMap; |
| 36 private final TreeMap<Path, HgManifest.Flags> flagsMap; | 38 private final TreeMap<Path, HgManifest.Flags> flagsMap; |
| 37 private final Convertor<Nodeid> idsPool; | 39 private final Convertor<Nodeid> idsPool; |
| 38 private final Convertor<Path> namesPool; | 40 private final Convertor<Path> namesPool; |
| 39 private Nodeid manifestRev; | 41 private Nodeid manifestRev = Nodeid.NULL; |
| 40 private int changelogRevIndex, manifestRevIndex; | 42 private int changelogRevIndex = NO_REVISION, manifestRevIndex = NO_REVISION; |
| 41 | 43 |
| 42 // optional pools for effective management of nodeids and filenames (they are likely | 44 // optional pools for effective management of nodeids and filenames (they are likely |
| 43 // to be duplicated among different manifest revisions | 45 // to be duplicated among different manifest revisions |
| 44 public ManifestRevision(Pool<Nodeid> nodeidPool, Convertor<Path> filenamePool) { | 46 public ManifestRevision(Pool<Nodeid> nodeidPool, Convertor<Path> filenamePool) { |
| 45 idsPool = nodeidPool; | 47 idsPool = nodeidPool; |
