@NotNull
  public static Revision getHeadRevision(@NotNull SvnVcs vcs, @NotNull Url url) throws SvnBindException {
    Info info = vcs.getInfo(url, Revision.HEAD);

    if (info == null) {
      throw new SvnBindException(SvnBundle.message("error.could.not.get.info.for.path", url));
    }
    if (!info.getRevision().isValid()) {
      throw new SvnBindException(SvnBundle.message("error.could.not.get.revision.for.url", url));
    }

    return info.getRevision();
  }
@NotNull
  public static Revision getHeadRevision(@NotNull SvnVcs vcs, @NotNull Url url)