comparison src/org/tmatesoft/hg/core/HgCloneCommand.java @ 390:6952d9ce97f1

Handle missing manifest revision case (brought up with Issue 23), do my best to report missing manifests when walking few manifest revisions
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 16 Feb 2012 16:08:51 +0100
parents fc8bc2f1edbe
children 528b6780a8bd
comparison
equal deleted inserted replaced
389:82bec80bb1a4 390:6952d9ce97f1
28 import java.util.Collections; 28 import java.util.Collections;
29 import java.util.LinkedList; 29 import java.util.LinkedList;
30 import java.util.TreeMap; 30 import java.util.TreeMap;
31 import java.util.zip.DeflaterOutputStream; 31 import java.util.zip.DeflaterOutputStream;
32 32
33 import org.tmatesoft.hg.internal.BasicSessionContext;
33 import org.tmatesoft.hg.internal.ByteArrayDataAccess; 34 import org.tmatesoft.hg.internal.ByteArrayDataAccess;
34 import org.tmatesoft.hg.internal.DataAccess; 35 import org.tmatesoft.hg.internal.DataAccess;
35 import org.tmatesoft.hg.internal.DigestHelper; 36 import org.tmatesoft.hg.internal.DigestHelper;
36 import org.tmatesoft.hg.internal.Internals; 37 import org.tmatesoft.hg.internal.Internals;
37 import org.tmatesoft.hg.repo.HgBundle; 38 import org.tmatesoft.hg.repo.HgBundle;
130 private final LinkedList<String> fncacheFiles = new LinkedList<String>(); 131 private final LinkedList<String> fncacheFiles = new LinkedList<String>();
131 private Internals implHelper; 132 private Internals implHelper;
132 133
133 public WriteDownMate(File destDir) { 134 public WriteDownMate(File destDir) {
134 hgDir = new File(destDir, ".hg"); 135 hgDir = new File(destDir, ".hg");
135 implHelper = new Internals(); 136 implHelper = new Internals(new BasicSessionContext(null, null));
136 implHelper.setStorageConfig(1, STORE | FNCACHE | DOTENCODE); 137 implHelper.setStorageConfig(1, STORE | FNCACHE | DOTENCODE);
137 storagePathHelper = implHelper.buildDataFilesHelper(); 138 storagePathHelper = implHelper.buildDataFilesHelper();
138 } 139 }
139 140
140 public void initEmptyRepository() throws IOException { 141 public void initEmptyRepository() throws IOException {