@NotNull
  private static Collection<Change> loadTotalDiff(@NotNull HgRepository repository, @NotNull String branchName) throws VcsException {
    // return diff between current working directory and branchName: working dir should be displayed as a 'left' one (base)
    HgRevisionNumber branchRevisionNumber = HgCompareWithBranchAction.getBranchRevisionNumber(repository, branchName);
    VirtualFile root = repository.getRoot();
    List<Change> changes = HgUtil.getDiff(repository.getProject(), root, VcsUtil.getFilePath(root), branchRevisionNumber, null);
    return DvcsBranchUtil.swapRevisions(changes);
  }
@NotNull
  private static Collection<Change> loadTotalDiff(@NotNull HgRepository repository, @NotNull String branchName)