public static @Nullable HgCommandResult getLogResult(final @NotNull Project project,
                                                       final @NotNull VirtualFile root, @NotNull HgVersion version, int limit,
                                                       @NotNull List<String> parameters, @NotNull String template) {
    HgLogCommand hgLogCommand = new HgLogCommand(project);
    hgLogCommand.setLogFile(false);

    List<String> args = new ArrayList<>(parameters);
    if (!version.isParentRevisionTemplateSupported()) {
      args.add("--debug");
    }
    return hgLogCommand.execute(root, template, limit, getOriginalHgFile(project, root), args);
  }
public static @Nullable HgCommandResult getLogResult(final @NotNull Project project,
                                                       final @NotNull VirtualFile root, @NotNull HgVersion version, int limit,
                                                       @NotNull List<String> parameters, @NotNull String template)