use of org.zmlx.hg4idea.command.HgIncomingCommand in project intellij-community by JetBrains.
the class HgRemoteStatusUpdater method updateChangesStatusSynchronously.
private void updateChangesStatusSynchronously(Project project, VirtualFile[] roots, HgChangesetStatus status, boolean incoming) {
if (!myProjectSettings.isCheckIncomingOutgoing())
return;
final List<HgRevisionNumber> changesets = new LinkedList<>();
for (VirtualFile root : roots) {
if (incoming) {
changesets.addAll(new HgIncomingCommand(project).executeInCurrentThread(root));
} else {
changesets.addAll(new HgOutgoingCommand(project).executeInCurrentThread(root));
}
}
status.setChanges(changesets.size(), new ChangesetFormatter(status, changesets));
}
Aggregations