CommitFacility cf = new CommitFacility(Internals.getInstance(hgRepo), parentCsetRevIndex);
cf.add(hgRepo.getFileNode("a"), new FileContentSupplier(hgRepo, new File(repoLoc, "a")));
cf.branch(branch);
Transaction tr = newTransaction(hgRepo);
Nodeid commit = cf.commit("FIRST", tr);
tr.commit();
errorCollector.assertEquals("commit with branch shall update WC", branch, hgRepo.getWorkingCopyBranchName());
ExecHelper eh = new ExecHelper(new OutputParser.Stub(), repoLoc);
eh.run("hg", "tag", tag);
assertEquals("[sanity]", 0, eh.getExitValue());