package org.jenkinsci.plugins.p4.scm; import jenkins.scm.api.SCMRevision; /** * Created by pallen on 13/02/2017. */ public class P4Revision extends SCMRevision { private final long change; P4Revision(P4Head branch, long change) { super(branch); this.change = change; } /** * {@inheritDoc} */ @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } P4Revision that = (P4Revision) o; return change == that.change && getHead().equals(that.getHead()); } /** * {@inheritDoc} */ @Override public int hashCode() { return (int) (change ^ (change >>> 32)); } @Override public String toString() { return Long.toString(change); } }
# | 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 |