forked from JetBrains/intellij-community
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
104 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 0 additions & 32 deletions
32
plugins/hg4idea/src/org/zmlx/hg4idea/HgRepositoryManager.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ | |
*/ | ||
package hg4idea.test; | ||
|
||
import com.intellij.dvcs.test.Executor; | ||
import com.intellij.dvcs.test.MockProject; | ||
import com.intellij.dvcs.test.MockVirtualFile; | ||
import com.intellij.openapi.application.PluginPathManager; | ||
|
@@ -33,7 +34,7 @@ | |
/** | ||
* @author Nadya Zabrodina | ||
*/ | ||
public class HgLightTest extends HgExecutor { | ||
public class HgLightTest { | ||
|
||
//private static final String USER_NAME = "John Doe"; | ||
//private static final String USER_EMAIL = "[email protected]"; | ||
|
@@ -62,13 +63,14 @@ public void setUp() { | |
catch (IOException e) { | ||
fail("Can not start test case!\n"); //todo change | ||
} | ||
cd(myTestRoot); | ||
myProjectRoot = mkdir("project"); | ||
Executor.cd(myTestRoot); | ||
myProjectRoot = Executor.mkdir("project"); | ||
myProject = new MockProject(myProjectRoot); | ||
myPlatformFacade = new HgTestPlatformFacade(); | ||
cd(".hg"); | ||
Executor.cd(".hg"); | ||
File pluginRoot = new File(PluginPathManager.getPluginHomePath("hg4idea")); | ||
File hgrcFile = new File(new File(pluginRoot, "testData\\repo\\dot_hg"), "hgrc"); | ||
String pathToHgrc = "testData\\repo\\dot_hg"; | ||
File hgrcFile = new File(new File(pluginRoot, FileUtil.toSystemIndependentName(pathToHgrc)), "hgrc"); | ||
File hgrc = new File(new File(myProjectRoot, ".hg"), "hgrc"); | ||
try { | ||
FileUtil.copy(hgrcFile, hgrc); | ||
|
@@ -96,11 +98,11 @@ protected MockVirtualFile createRepository(String rootDir) { | |
return new MockVirtualFile(rootDir); | ||
} | ||
|
||
private void initRepo(String repoRoot) { | ||
cd(repoRoot); | ||
hg("init"); | ||
touch("file.txt"); | ||
hg("add file.txt"); | ||
hg("commit -m initial"); | ||
private static void initRepo(String repoRoot) { | ||
Executor.cd(repoRoot); | ||
HgExecutor.hg("init"); | ||
Executor.touch("file.txt"); | ||
HgExecutor.hg("add file.txt"); | ||
HgExecutor.hg("commit -m initial"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 0 additions & 41 deletions
41
plugins/hg4idea/testSrc/hg4idea/test/HgTestRepositoryManager.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.