use of com.google.copybara.DestinationEffect.DestinationRef in project copybara by google.
the class Mirror method run.
@Override
public void run(Path workdir, @Nullable String sourceRef) throws RepoException, IOException, ValidationException {
mirrorOptions.mirror(origin, destination, refspec, prune);
// More fine grain events based on the references created/updated/deleted:
generalOptions.eventMonitor().onChangeMigrationFinished(new ChangeMigrationFinishedEvent(ImmutableList.of(new DestinationEffect(Type.UPDATED, "Refspecs " + refspec + " mirrored successfully", // references
ImmutableList.of(), new DestinationRef(getOriginDestinationRef(destination), "mirror", /*url=*/
null), ImmutableList.of()))));
}
Aggregations