public @Nullable HgCommandResult execute(@NotNull VirtualFile repo,
                                           @NotNull String template,
                                           @NotNull String source,
                                           @NotNull String destination,
                                           boolean doNotShowAuthorizationRequest) {

    List<String> arguments = new LinkedList<>();
    arguments.add("-n");
    arguments.add("--template");
    arguments.add(template);
    arguments.add(HgHistoryUtil.prepareParameter("rev", source));
    arguments.add(destination);
    HgRemoteCommandExecutor commandExecutor =
      new HgRemoteCommandExecutor(project, destination, ModalityState.any(), doNotShowAuthorizationRequest);
    commandExecutor.setOutputAlwaysSuppressed(true);
    return commandExecutor.executeInCurrentThread(repo, "outgoing", arguments);
  }
public @Nullable HgCommandResult execute(@NotNull VirtualFile repo,
                                           @NotNull String template,
                                           @NotNull String source,
                                           @NotNull String destination,
                                           boolean doNotShowAuthorizationRequest)