Mercurial > hg4j
comparison test/org/tmatesoft/hg/test/TestIncoming.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 | 12f668401613 |
| children | 2813a26b8999 |
comparison
equal
deleted
inserted
replaced
| 489:9c0138cda59a | 490:b3c16d1aede0 |
|---|---|
| 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.RepoInitializer; |
| 36 import org.tmatesoft.hg.internal.Internals; | |
| 37 import org.tmatesoft.hg.repo.HgLookup; | 36 import org.tmatesoft.hg.repo.HgLookup; |
| 38 import org.tmatesoft.hg.repo.HgRemoteRepository; | 37 import org.tmatesoft.hg.repo.HgRemoteRepository; |
| 39 import org.tmatesoft.hg.repo.HgRepository; | 38 import org.tmatesoft.hg.repo.HgRepository; |
| 40 | 39 |
| 41 /** | 40 /** |
| 133 return dest; | 132 return dest; |
| 134 } | 133 } |
| 135 | 134 |
| 136 static File initEmptyTempRepo(String dirName) throws IOException { | 135 static File initEmptyTempRepo(String dirName) throws IOException { |
| 137 File dest = createEmptyDir(dirName); | 136 File dest = createEmptyDir(dirName); |
| 138 Internals implHelper = new Internals(new BasicSessionContext(null)); | 137 RepoInitializer ri = new RepoInitializer(); |
| 139 implHelper.setStorageConfig(1, STORE | FNCACHE | DOTENCODE); | 138 ri.setRequires(STORE | FNCACHE | DOTENCODE); |
| 140 implHelper.initEmptyRepository(new File(dest, ".hg")); | 139 ri.initEmptyRepository(new File(dest, ".hg")); |
| 141 return dest; | 140 return dest; |
| 142 } | 141 } |
| 143 } | 142 } |
