mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
HgLogTest updated for bash execution
This commit is contained in:
@@ -33,20 +33,21 @@ public class HgLogTest extends HgPlatformTest {
|
||||
|
||||
public void testParseCopiedWithoutBraces() throws HgCommandException {
|
||||
parseCopied("f.txt");
|
||||
if (!SystemInfo.isWindows) {
|
||||
myVcs.getGlobalSettings().setRunViaBash(true);
|
||||
try {
|
||||
parseCopied("f1.txt");
|
||||
}
|
||||
finally {
|
||||
myVcs.getGlobalSettings().setRunViaBash(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void testParseCopiedWithBraces() throws HgCommandException {
|
||||
parseCopied("(f.txt)");
|
||||
}
|
||||
|
||||
public void testLogCommandViaBash() throws HgCommandException {
|
||||
if (SystemInfo.isWindows) {
|
||||
return;
|
||||
}
|
||||
myVcs.getGlobalSettings().setRunViaBash(true);
|
||||
parseCopied("f.txt");
|
||||
}
|
||||
|
||||
public void testParseFileCopiesWithWhitespaces() {
|
||||
Map<String, String> filesMap = HgLogCommand.parseCopiesFileList("/a/b c/d.txt (a/b a/d.txt)\u0001/a/b c/(d).txt (/a/b c/(f).txt)");
|
||||
assertTrue(filesMap.containsKey("a/b a/d.txt"));
|
||||
|
||||
Reference in New Issue
Block a user