Style: unnecessary array with indicator output command removed, myShowOutput field used instead

This commit is contained in:
Nadya Zabrodina
2013-12-21 15:14:20 +04:00
parent f1c78e193f
commit 71f457f8f1
@@ -61,7 +61,6 @@ public final class HgCommandExecutor {
private final Project myProject;
private final HgVcs myVcs;
private final String myDestination;
private final List<String> operationsWithTextIndicator = Arrays.asList("clone", "push", "pull", "update", "merge");
@NotNull private Charset myCharset;
private boolean myIsSilent = false;
@@ -208,8 +207,8 @@ public final class HgCommandExecutor {
String workingDir = repo != null ? repo.getPath() : null;
ShellCommand shellCommand = new ShellCommand(cmdLine, workingDir, myCharset);
long startTime = System.currentTimeMillis();
LOG.debug(String.format("hg %s.started", operation));
result = shellCommand.execute(operationsWithTextIndicator.contains(operation));
LOG.debug(String.format("hg %s started", operation));
result = shellCommand.execute(myShowOutput);
LOG.debug(String.format("hg %s finished. Took %s ms", operation, System.currentTimeMillis() - startTime));
if (!HgErrorUtil.isAuthorizationError(result)) {
passReceiver.saveCredentials();