private Revision resolveRevisionNumber(@NotNull File path, @Nullable Revision revision) throws SvnBindException {
    long result = revision != null ? revision.getNumber() : -1;

    // base should be resolved manually - could not set revision to BASE to get revision property
    if (Revision.BASE.equals(revision)) {
      Info info = myVcs.getInfo(path, Revision.BASE);

      result = info != null ? info.getRevision().getNumber() : -1;
    }

    if (result == -1) {
      throw new SvnBindException(message("error.could.not.determine.revision.number.for.file.and.revision", path, revision));
    }

    return Revision.of(result);
  }
private Revision resolveRevisionNumber(@NotNull File path, @Nullable Revision revision)