[hg] make some commands silent.
authorKirill Likhodedov <kirill.likhodedov@jetbrains.com>
Tue, 19 Apr 2011 12:01:52 +0000 (16:01 +0400)
committerKirill Likhodedov <kirill.likhodedov@jetbrains.com>
Wed, 20 Apr 2011 12:01:33 +0000 (16:01 +0400)
plugins/hg4idea/src/org/zmlx/hg4idea/command/HgStatusCommand.java
plugins/hg4idea/src/org/zmlx/hg4idea/command/HgTagBranchCommand.java

index b71bd7149536db64014700b3f431eb10a84f2af3..e535c058ab9d0700467792c3bc8a0038eec546d6 100644 (file)
@@ -95,6 +95,7 @@ public class HgStatusCommand {
     }
 
     HgCommandExecutor executor = new HgCommandExecutor(project);
+    executor.setSilent(true);
 
     List<String> arguments = new LinkedList<String>();
     if (includeAdded) {
index 2e514307552d390980c92a5c1a75677901d5e056..d84e24a798d0775a0b3a0448a09820c0bc817384 100644 (file)
@@ -45,7 +45,9 @@ public class HgTagBranchCommand {
 
   @Nullable
   public String getCurrentBranch() {
-    HgCommandResult result = new HgCommandExecutor(project).executeInCurrentThread(repo, "branch", null);
+    final HgCommandExecutor executor = new HgCommandExecutor(project);
+    executor.setSilent(true);
+    HgCommandResult result = executor.executeInCurrentThread(repo, "branch", null);
     if (result == null) {
       return null;
     }