final HgParentChildMap<HgChangelog> parentHelper = new HgParentChildMap<HgChangelog>(clog);
parentHelper.init();
final Internals implRepo = HgInternals.getImplementationRepo(repo);
final PhasesHelper phaseHelper = new PhasesHelper(implRepo, parentHelper);
final RepositoryComparator comparator = new RepositoryComparator(parentHelper, remoteRepo);
comparator.compare(new ProgressSupport.Sub(progress, 50), getCancelSupport(null, true));
List<Nodeid> l = comparator.getLocalOnlyRevisions();
if (phaseHelper.isCapableOfPhases() && phaseHelper.withSecretRoots()) {
RevisionSet secret = phaseHelper.allSecret();
outgoing = new RevisionSet(l).subtract(secret);
} else {