Use blocking read to read data from vcs processes

This commit is contained in:
Maxim.Mossienko
2015-07-03 17:10:41 +03:00
committed by Kirill Likhodedov
parent a2d45184b9
commit cff1ba8ca1
4 changed files with 15 additions and 5 deletions
@@ -140,6 +140,11 @@ public abstract class GitTextHandler extends GitHandler {
public Charset getCharset() { public Charset getCharset() {
return myCharset; return myCharset;
} }
@Override
protected boolean useNonBlockingRead() {
return false;
}
} }
} }
@@ -68,4 +68,9 @@ class HgCommandProcessHandler extends OSProcessHandler {
return HgCommandProcessHandler.this.executeOnPooledThread(runnable); return HgCommandProcessHandler.this.executeOnPooledThread(runnable);
} }
} }
@Override
protected boolean useNonBlockingRead() {
return false;
}
} }
@@ -85,4 +85,9 @@ public class SvnProcessHandler extends OSProcessHandler {
return SvnProcessHandler.this.executeOnPooledThread(runnable); return SvnProcessHandler.this.executeOnPooledThread(runnable);
} }
} }
@Override
protected boolean useNonBlockingRead() {
return false;
}
} }
@@ -57,11 +57,6 @@ public class TerminalProcessHandler extends SvnProcessHandler {
process.destroy(); process.destroy();
} }
@Override
protected boolean useNonBlockingRead() {
return false;
}
@Override @Override
public void notifyTextAvailable(String text, Key outputType) { public void notifyTextAvailable(String text, Key outputType) {
terminalOutputCapturer.onTextAvailable(new ProcessEvent(this, text), outputType); terminalOutputCapturer.onTextAvailable(new ProcessEvent(this, text), outputType);