IDEA-75269 Fix encoding in diff for Mercurial.

[Reviewed by irengrig, max]
This commit is contained in:
Kirill Likhodedov
2011-12-05 18:03:45 +03:00
parent 99cd41e323
commit 7a8ddb5dc0
@@ -39,6 +39,7 @@ public class HgCatCommand {
final HgCommandExecutor executor = new HgCommandExecutor(myProject);
executor.setOptions(Collections.<String>emptyList());
executor.setSilent(true);
executor.setCharset(charset);
final HgCommandResult result = executor.executeInCurrentThread(hgFile.getRepo(), "cat", arguments);
if (result == null) { // in case of error