HgServer server = new HgServer().start(srcRepoLoc);
try {
final HgLookup hgLookup = new HgLookup();
final HgRemoteRepository srcRemote = hgLookup.detect(server.getURL());
final HgRepository dstRepo = hgLookup.detect(dstRepoLoc);
HgPullCommand cmd = new HgPullCommand(dstRepo).source(srcRemote);
cmd.execute();
final HgRepository srcRepo = hgLookup.detect(srcRepoLoc);
checkRepositoriesAreSame(srcRepo, dstRepo);
final List<Nodeid> incoming = new HgIncomingCommand(dstRepo).against(srcRemote).executeLite();
errorCollector.assertTrue(incoming.toString(), incoming.isEmpty());
RepoUtils.assertHgVerifyOk(errorCollector, dstRepoLoc);