@Override
  public boolean equals(Object obj) {
    if (this == obj) {
      return true;
    }

    if (!(obj instanceof SVNRevision)) {
      return false;
    }

    SVNRevision svnRevision = (SVNRevision) obj;

    long primaryKey = svnRevision.getPrimaryKey();

    if (getPrimaryKey() == primaryKey) {
      return true;
    } else {
      return false;
    }
  }
  @Override
  public int compareTo(SVNRevision svnRevision) {
    int value = 0;

    if (getRevisionNumber() < svnRevision.getRevisionNumber()) {
      value = -1;
    } else if (getRevisionNumber() > svnRevision.getRevisionNumber()) {
      value = 1;
    } else {
      value = 0;
    }

    value = value * -1;

    if (value != 0) {
      return value;
    }

    return 0;
  }