ArrayOutOfBounds Exception fixed when update log after commit

This commit is contained in:
Nadya Zabrodina
2013-11-04 17:37:46 +04:00
parent c343140736
commit 12fcf3d9ad
@@ -28,7 +28,9 @@ import org.zmlx.hg4idea.HgVcs;
import org.zmlx.hg4idea.HgVcsMessages;
import org.zmlx.hg4idea.execution.HgCommandException;
import org.zmlx.hg4idea.execution.HgCommandExecutor;
import org.zmlx.hg4idea.repo.HgRepositoryManager;
import org.zmlx.hg4idea.util.HgEncodingUtil;
import org.zmlx.hg4idea.util.HgUtil;
import java.io.File;
import java.io.IOException;
@@ -88,6 +90,10 @@ public class HgCommitCommand {
commitChunkFiles(chunk, amendCommit);
}
}
if (!myProject.isDisposed()) {
HgRepositoryManager manager = HgUtil.getRepositoryManager(myProject);
manager.updateRepository(myRoot);
}
final MessageBus messageBus = myProject.getMessageBus();
messageBus.syncPublisher(HgVcs.REMOTE_TOPIC).update(myProject, null);
messageBus.syncPublisher(HgVcs.BRANCH_TOPIC).update(myProject, null);