RevisionSet remoteDraftsLocalPublic = phaseHelper.synchronizeWithRemote(remotePhases, outgoing);
if (!remoteDraftsLocalPublic.isEmpty()) {
// foreach remoteDraftsLocallyPublic.heads() do push Draft->Public
for (Nodeid n : remoteDraftsLocalPublic.heads(parentHelper)) {
try {
Outcome upo = remoteRepo.updatePhase(HgPhase.Draft, HgPhase.Public, n);
if (!upo.isOk()) {
implRepo.getLog().dump(getClass(), Severity.Info, "Failed to update remote phase, reason: %s", upo.getMessage());
}
} catch (HgRemoteConnectionException ex) {
implRepo.getLog().dump(getClass(), Severity.Error, ex, String.format("Failed to update phase of %s", n.shortNotation()));
}
}