From e65f6b03da299e63bedf08d525c1f481fcc07a76 Mon Sep 17 00:00:00 2001 From: Nadya Zabrodina Date: Wed, 26 Mar 2014 19:33:18 +0400 Subject: [PATCH] IDEA-122883 Log should refreshes immediately after pull --- .../hg4idea/src/org/zmlx/hg4idea/command/HgPullCommand.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/hg4idea/src/org/zmlx/hg4idea/command/HgPullCommand.java b/plugins/hg4idea/src/org/zmlx/hg4idea/command/HgPullCommand.java index 8f8408a370d7..4f74562dffdf 100644 --- a/plugins/hg4idea/src/org/zmlx/hg4idea/command/HgPullCommand.java +++ b/plugins/hg4idea/src/org/zmlx/hg4idea/command/HgPullCommand.java @@ -20,7 +20,9 @@ import org.zmlx.hg4idea.HgVcs; import org.zmlx.hg4idea.action.HgCommandResultNotifier; import org.zmlx.hg4idea.execution.HgCommandExecutor; import org.zmlx.hg4idea.execution.HgCommandResult; +import org.zmlx.hg4idea.repo.HgRepositoryManager; import org.zmlx.hg4idea.util.HgErrorUtil; +import org.zmlx.hg4idea.util.HgUtil; import java.util.LinkedList; import java.util.List; @@ -76,6 +78,10 @@ public class HgPullCommand { final HgCommandExecutor executor = new HgCommandExecutor(project, source); executor.setShowOutput(true); HgCommandResult result = executor.executeInCurrentThread(repo, "pull", arguments); + if (!project.isDisposed()) { + HgRepositoryManager manager = HgUtil.getRepositoryManager(project); + manager.updateRepository(repo); + } if (HgErrorUtil.isAuthorizationError(result)) { new HgCommandResultNotifier(project) .notifyError(result, "Authorization required", "http authorization required for " + source + "");