comparison test/org/tmatesoft/hg/test/TestIncoming.java @ 388:b015f3918120

Work on FIXME: correct HgDataFile#workingCopy with tests; BasicSessionContext with property override; platform-specific options to internals
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Wed, 15 Feb 2012 22:57:56 +0100
parents e51dd9a14b6f
children 12f668401613
comparison
equal deleted inserted replaced
387:cdea37239b01 388:b015f3918120
1 /* 1 /*
2 * Copyright (c) 2011 TMate Software Ltd 2 * Copyright (c) 2011-2012 TMate Software Ltd
3 * 3 *
4 * This program is free software; you can redistribute it and/or modify 4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by 5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 2 of the License. 6 * the Free Software Foundation; version 2 of the License.
7 * 7 *
30 import org.junit.Test; 30 import org.junit.Test;
31 import org.tmatesoft.hg.core.HgChangeset; 31 import org.tmatesoft.hg.core.HgChangeset;
32 import org.tmatesoft.hg.core.HgIncomingCommand; 32 import org.tmatesoft.hg.core.HgIncomingCommand;
33 import org.tmatesoft.hg.core.HgLogCommand; 33 import org.tmatesoft.hg.core.HgLogCommand;
34 import org.tmatesoft.hg.core.Nodeid; 34 import org.tmatesoft.hg.core.Nodeid;
35 import org.tmatesoft.hg.internal.BasicSessionContext;
35 import org.tmatesoft.hg.internal.Internals; 36 import org.tmatesoft.hg.internal.Internals;
36 import org.tmatesoft.hg.repo.HgLookup; 37 import org.tmatesoft.hg.repo.HgLookup;
37 import org.tmatesoft.hg.repo.HgRemoteRepository; 38 import org.tmatesoft.hg.repo.HgRemoteRepository;
38 import org.tmatesoft.hg.repo.HgRepository; 39 import org.tmatesoft.hg.repo.HgRepository;
39 40
132 return dest; 133 return dest;
133 } 134 }
134 135
135 static File initEmptyTempRepo(String dirName) throws IOException { 136 static File initEmptyTempRepo(String dirName) throws IOException {
136 File dest = createEmptyDir(dirName); 137 File dest = createEmptyDir(dirName);
137 Internals implHelper = new Internals(); 138 Internals implHelper = new Internals(new BasicSessionContext(null, null, null));
138 implHelper.setStorageConfig(1, STORE | FNCACHE | DOTENCODE); 139 implHelper.setStorageConfig(1, STORE | FNCACHE | DOTENCODE);
139 implHelper.initEmptyRepository(new File(dest, ".hg")); 140 implHelper.initEmptyRepository(new File(dest, ".hg"));
140 return dest; 141 return dest;
141 } 142 }
142 } 143 }