public int compareTo(Revision o) {IndexRevision other = (IndexRevision) o;return commit.compareTo(other.commit);}
public virtual int CompareTo(string version){long gen = long.Parse(version, NumberStyles.HexNumber);long commitGen = commit.Generation;return commitGen < gen ? -1 : (commitGen > gen ? 1 : 0);}