/** * Compare all components of two revisions. * * @param other the other revision * @return -1, 0, or 1 */ int compareTo(Revision other) { int comp = compareRevisionTimeThenClusterId(other); if (comp == 0) { if (branch != other.branch) { return branch ? -1 : 1; } } return comp; }
/** * Compare all components of two revisions. * * @param other the other revision * @return -1, 0, or 1 */ int compareTo(Revision other) { int comp = compareRevisionTimeThenClusterId(other); if (comp == 0) { if (branch != other.branch) { return branch ? -1 : 1; } } return comp; }
if (first.compareRevisionTimeThenClusterId(revision) <= 0) { return true; if (Utils.isCommitted(cv)) { Revision c = resolveCommitRevision(r, cv); return c.compareRevisionTimeThenClusterId(revision) <= 0;
if (first.compareRevisionTimeThenClusterId(revision) <= 0) { return true; if (Utils.isCommitted(cv)) { Revision c = resolveCommitRevision(r, cv); return c.compareRevisionTimeThenClusterId(revision) <= 0;
if (prev.compareRevisionTimeThenClusterId(value.revision) > 0) {
if (prev.compareRevisionTimeThenClusterId(value.revision) > 0) {
Revision previous = ns.newRevision(); for (Revision rev : root.getAllChanges()) { assertTrue(previous.compareRevisionTimeThenClusterId(rev) > 0); previous = rev;
for (Map.Entry<Revision, String> entry : revs.entrySet()) { if (previous != null) { assertTrue(previous.compareRevisionTimeThenClusterId(entry.getKey()) > 0);