@NotNull
  private CommitCompareInfo loadCommitsToCompare(List<HgRepository> repositories, String branchName) throws VcsException {
    CommitCompareInfo compareInfo = new CommitCompareInfo();
    for (HgRepository repository : repositories) {
      List<VcsFullCommitDetails> headToBranch = loadCommitsBetween(repository, CURRENT_REVISION, branchName);
      List<VcsFullCommitDetails> branchToHead = loadCommitsBetween(repository, branchName, CURRENT_REVISION);
      compareInfo.put(repository, headToBranch, branchToHead);
      compareInfo.putTotalDiff(repository, loadTotalDiff(repository, branchName));
    }
    return compareInfo;
  }
@NotNull
  private CommitCompareInfo loadCommitsToCompare(List<HgRepository> repositories, String branchName)