HgLogTest updated for bash execution

This commit is contained in:
Nadya Zabrodina
2013-08-21 16:20:10 +04:00
parent 66d11526b6
commit fcbe169119
@@ -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"));