Mercurial > hg4j
comparison test/org/tmatesoft/hg/test/TestHistory.java @ 282:e51dd9a14b6f
Yet another WC status fix, where dirstate parent and base revision are treated right (dirstate parent other than tip and explicit baseRevision are not the same)
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Sat, 03 Sep 2011 01:21:03 +0200 |
parents | 4c3b9f679412 |
children | 9c9c442b5f2e |
comparison
equal
deleted
inserted
replaced
281:81e9a3c9bafe | 282:e51dd9a14b6f |
---|---|
18 | 18 |
19 import static org.hamcrest.CoreMatchers.equalTo; | 19 import static org.hamcrest.CoreMatchers.equalTo; |
20 import static org.hamcrest.CoreMatchers.is; | 20 import static org.hamcrest.CoreMatchers.is; |
21 import static org.junit.Assert.assertTrue; | 21 import static org.junit.Assert.assertTrue; |
22 | 22 |
23 import java.io.File; | |
24 import java.util.ArrayList; | 23 import java.util.ArrayList; |
25 import java.util.Collections; | 24 import java.util.Collections; |
26 import java.util.Comparator; | 25 import java.util.Comparator; |
27 import java.util.Iterator; | 26 import java.util.Iterator; |
28 import java.util.LinkedList; | 27 import java.util.LinkedList; |
73 // this(new HgLookup().detect("\\temp\\hg\\hello")); | 72 // this(new HgLookup().detect("\\temp\\hg\\hello")); |
74 } | 73 } |
75 | 74 |
76 private TestHistory(HgRepository hgRepo) { | 75 private TestHistory(HgRepository hgRepo) { |
77 repo = hgRepo; | 76 repo = hgRepo; |
78 eh = new ExecHelper(changelogParser = new LogOutputParser(true), new File(repo.getLocation())); | 77 eh = new ExecHelper(changelogParser = new LogOutputParser(true), repo.getWorkingDir()); |
79 | 78 |
80 } | 79 } |
81 | 80 |
82 @Test | 81 @Test |
83 public void testCompleteLog() throws Exception { | 82 public void testCompleteLog() throws Exception { |