use of com.google.gerrit.server.data.DependencyAttribute in project gerrit by GerritCodeReview.
the class EventFactory method newDependencyAttribute.
private DependencyAttribute newDependencyAttribute(Change c, PatchSet ps) {
DependencyAttribute d = new DependencyAttribute();
d.number = c.getId().get();
d.id = c.getKey().toString();
d.revision = ps.commitId().name();
d.ref = ps.refName();
return d;
}
use of com.google.gerrit.server.data.DependencyAttribute in project gerrit by GerritCodeReview.
the class EventFactory method newDependsOn.
private DependencyAttribute newDependsOn(Change c, PatchSet ps) {
DependencyAttribute d = newDependencyAttribute(c, ps);
d.isCurrentPatchSet = ps.id().equals(c.currentPatchSetId());
return d;
}
Aggregations