RepoUtils.createFile(new File(repoLoc, "xx"), "xyz");
new HgAddRemoveCommand(hgRepo).add(Path.create("xx")).remove(Path.create("d")).execute();
CommitFacility cf = new CommitFacility(Internals.getInstance(hgRepo), hgRepo.getChangelog().getLastRevision());
FileContentSupplier contentProvider = new FileContentSupplier(hgRepo, new File(repoLoc, "xx"));
cf.add(hgRepo.getFileNode("xx"), contentProvider);
cf.forget(hgRepo.getFileNode("d"));
Transaction tr = newTransaction(hgRepo);
Nodeid commitRev = cf.commit("Commit with add/remove cmd", tr);
tr.commit();
//
List<HgChangeset> commits = new HgLogCommand(hgRepo).changeset(commitRev).execute();