comparison src/org/tmatesoft/hg/core/HgCloneCommand.java @ 637:4a0bab2c6da1

HgInitCommand: expose repo init functionality
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Fri, 07 Jun 2013 12:32:15 +0200
parents 6526d8adbc0f
children ae2d439fbed3
comparison
equal deleted inserted replaced
636:ffce73efa2c2 637:4a0bab2c6da1
171 171
172 public WriteDownMate(SessionContext sessionCtx, File destDir, ProgressSupport progress, CancelSupport cancel) { 172 public WriteDownMate(SessionContext sessionCtx, File destDir, ProgressSupport progress, CancelSupport cancel) {
173 ctx = sessionCtx; 173 ctx = sessionCtx;
174 hgDir = new File(destDir, ".hg"); 174 hgDir = new File(destDir, ".hg");
175 repoInit = new RepoInitializer(); 175 repoInit = new RepoInitializer();
176 repoInit.setRequires(STORE | FNCACHE | DOTENCODE); 176 repoInit.setRequires(REVLOGV1 | STORE | FNCACHE | DOTENCODE);
177 storagePathHelper = repoInit.buildDataFilesHelper(sessionCtx); 177 storagePathHelper = repoInit.buildDataFilesHelper(sessionCtx);
178 progressSupport = progress; 178 progressSupport = progress;
179 cancelSupport = cancel; 179 cancelSupport = cancel;
180 revlogDataZip = new RevlogCompressor(sessionCtx); 180 revlogDataZip = new RevlogCompressor(sessionCtx);
181 pathFactory = ctx.getPathFactory(); 181 pathFactory = ctx.getPathFactory();