public @Nullable HgCommandResult executeInCurrentThread() {
    final List<String> arguments = new ArrayList<>(2);
    arguments.add(repositoryURL);
    arguments.add(directory);
    final HgRemoteCommandExecutor executor = new HgRemoteCommandExecutor(project, repositoryURL);
    executor.setShowOutput(true);
    return executor.executeInCurrentThread(null, "clone", arguments);
  }
public @Nullable HgCommandResult executeInCurrentThread()