cf.add(dfB, new FileContentSupplier(hgRepo, modifiedFile));
cf.forget(dfD);
cf.branch("another-branch");
Transaction tr = newTransaction(hgRepo);
Nodeid commitRev = cf.commit("Commit to fail", tr);
tr.rollback();
//
errorCollector.assertEquals(lastClogRevision, hgRepo.getChangelog().getLastRevision());
errorCollector.assertEquals(lastManifestRev, hgRepo.getManifest().getLastRevision());
errorCollector.assertEquals(DEFAULT_BRANCH_NAME, DirstateReader.readBranch(Internals.getInstance(hgRepo)));
errorCollector.assertFalse(hgRepo.getChangelog().isKnown(commitRev));