[hg] don't check for incoming/outgoing changes if there is no default repository.
[idea/community.git] / plugins / hg4idea / src / org / zmlx / hg4idea / command / HgOutgoingCommand.java
index a14eb43e2cacbdd497bfde89420e90effe8aa0d5..cc045d2affd7c66b1e5c6c6b8c77d7b37058097a 100644 (file)
@@ -13,6 +13,7 @@
 package org.zmlx.hg4idea.command;
 
 import com.intellij.openapi.project.Project;
+import com.intellij.openapi.vfs.VirtualFile;
 
 public class HgOutgoingCommand extends HgRemoteChangesetsCommand {
 
@@ -20,4 +21,8 @@ public class HgOutgoingCommand extends HgRemoteChangesetsCommand {
     super(project, "outgoing");
   }
 
+  protected String getRepositoryUrl(VirtualFile repo) {
+    return new HgShowConfigCommand(project).getDefaultPushPath(repo);
+  }
+
 }