package org.jenkinsci.plugins.p4.scm; import jenkins.scm.api.SCMRevision; import org.jenkinsci.plugins.p4.changes.P4Ref; import java.util.Objects; public class P4Revision extends SCMRevision { private final P4Ref ref; P4Revision(P4Head branch, P4Ref ref) { super(branch); this.ref = ref; } public P4Ref getRef() { return ref; } /** * {@inheritDoc} */ @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } P4Revision that = (P4Revision) o; boolean c = ref.equals(that.ref); boolean h = getHead().equals(that.getHead()); return c && h; } /** * {@inheritDoc} */ @Override public int hashCode() { return Objects.hashCode(ref); } @Override public String toString() { if (ref == null) { return "undefined"; } return ref.toString(); } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 23685 | Paul Allen | Copy main -> dev | ||
//guest/perforce_software/p4jenkins/main/src/main/java/org/jenkinsci/plugins/p4/scm/P4Revision.java | |||||
#5 | 22879 | Paul Allen | Fix equals used in comparable check and null check. | ||
#4 | 22863 | Paul Allen | Store change in P4Revision as P4Ref. | ||
#3 | 22396 | Paul Allen |
MultiBranch support for Perforce Swarm Reviews. A work in progress - adds Swarm API support to find branches and reviews from a Swarm project. #review-22354 |
||
#2 | 22128 | Paul Allen |
Helix Graph support for Jenkins. JENKINS-40354 |
||
#1 | 21758 | Paul Allen |
Merge pull request #38 from jenkinsci/dev scm-api 2.0.2 updates |