Search in sources :

Example 1 with DependencyAttribute

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;
}
Also used : DependencyAttribute(com.google.gerrit.server.data.DependencyAttribute)

Example 2 with DependencyAttribute

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;
}
Also used : DependencyAttribute(com.google.gerrit.server.data.DependencyAttribute)

Aggregations

DependencyAttribute (com.google.gerrit.server.data.DependencyAttribute)2