final HgRemoteRepository dstRemote = hgLookup.detect(server.getURL());
PhasesHelper phaseHelper = new PhasesHelper(HgInternals.getImplementationRepo(srcRepo));
final RevisionSet allSecret = phaseHelper.allSecret();
assertFalse("[sanity]", allSecret.isEmpty());
new HgPushCommand(srcRepo).destination(dstRemote).execute();
HgRepository dstRepo = hgLookup.detect(dstRepoLoc);
final HgChangelog srcClog = srcRepo.getChangelog();
final HgChangelog dstClog = dstRepo.getChangelog();
errorCollector.assertEquals(srcClog.getRevisionCount() - allSecret.size(), dstClog.getRevisionCount());
for (Nodeid n : allSecret) {
errorCollector.assertTrue(n.toString(), !dstClog.isKnown(n));