@Override
  public boolean equals(Object object) {
    if (object == this) {
      return true;
    }
    if (!(object instanceof HgRevisionNumber that)) {
      return false;
    }
    return compareTo(that) == 0;
  }
@Override
  public boolean equals(Object object)