mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
hg: add debug info for tests; flip arguments
GitOrigin-RevId: c426c493de8cdc4697ef2d91340c7400eda9c316
This commit is contained in:
committed by
intellij-monorepo-bot
parent
ca798996ea
commit
1efc19876c
@@ -15,6 +15,7 @@
|
||||
*/
|
||||
package hg4idea.test.repo;
|
||||
|
||||
import com.intellij.dvcs.DvcsUtil;
|
||||
import com.intellij.openapi.application.PluginPathManager;
|
||||
import com.intellij.openapi.util.io.FileUtil;
|
||||
import com.intellij.openapi.vcs.VcsTestUtil;
|
||||
@@ -28,6 +29,8 @@ import java.io.IOException;
|
||||
import java.util.Collection;
|
||||
import java.util.HashSet;
|
||||
|
||||
import static com.intellij.openapi.vcs.Executor.debug;
|
||||
|
||||
public class HgRepositoryReaderTest extends HgPlatformTest {
|
||||
|
||||
@NotNull private HgRepositoryReader myRepositoryReader;
|
||||
@@ -74,6 +77,11 @@ public class HgRepositoryReaderTest extends HgPlatformTest {
|
||||
}
|
||||
|
||||
public void testTip() {
|
||||
File cacheDir = new File(myHgDir, "cache");
|
||||
assertTrue(cacheDir.exists());
|
||||
File branchFile = new File(cacheDir, "branchheads-served");
|
||||
assertTrue(branchFile.exists());
|
||||
debug(DvcsUtil.tryLoadFileOrReturn(branchFile, ""));
|
||||
assertEquals("25e44c95b2612e3cdf29a704dabf82c77066cb67", myRepositoryReader.readCurrentTipRevision());
|
||||
}
|
||||
|
||||
@@ -117,7 +125,7 @@ public class HgRepositoryReaderTest extends HgPlatformTest {
|
||||
|
||||
|
||||
public void testCurrentBookmark() {
|
||||
assertEquals(myRepositoryReader.readCurrentBookmark(), "B_BookMark");
|
||||
assertEquals("B_BookMark", myRepositoryReader.readCurrentBookmark());
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
Reference in New Issue
Block a user