@Override
  public boolean cherryPick(final @NotNull List<? extends VcsCommitMetadata> commits) {
    Map<HgRepository, List<VcsCommitMetadata>> commitsInRoots = DvcsUtil.groupCommitsByRoots(
      HgUtil.getRepositoryManager(myProject), commits);
    IntRef commitsGrafted = new IntRef(0);
    for (Map.Entry<HgRepository, List<VcsCommitMetadata>> entry : commitsInRoots.entrySet()) {
      processGrafting(entry.getKey(), ContainerUtil.map(entry.getValue(),
                                                        commitDetails -> commitDetails.getId().asString()), commitsGrafted);
    }

    return commitsGrafted.get() == commits.size();
  }
@Override
  public boolean cherryPick(final @NotNull List<? extends VcsCommitMetadata> commits)