assertTrue("[sanity]", f1.canWrite());
HgServer server = new HgServer().publishing(false).start(dstRepoLoc);
try {
final HgLookup hgLookup = new HgLookup();
final HgRepository srcRepo = hgLookup.detect(srcRepoLoc);
final HgRemoteRepository dstRemote = hgLookup.detect(server.getURL());
PhasesHelper phaseHelper = new PhasesHelper(HgInternals.getImplementationRepo(srcRepo));
final RevisionSet allDraft = phaseHelper.allDraft();
assertFalse("[sanity]", allDraft.isEmpty());
final int publicCsetToBranchAt = 4;
assertEquals("[sanity]", HgPhase.Public, phaseHelper.getPhase(publicCsetToBranchAt, null));