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 | |
---|---|---|---|---|---|
#8 | 24501 | Paul Allen | Refactor to use P4SCMXxx naming convention. | ||
#7 | 24497 | Paul Allen |
Force use of revision for Head. Update P4Head->P4Path revision with P4Revision to avoid builds on unbounded 'latest'. |
||
#6 | 24492 | Paul Allen |
Initial work for MultiBranch Event trigger. JENKINS-52066 (Triggered Events and not Polling per change) |
||
#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 |