public void initEmptyRepository() throws HgIOException, HgRepositoryNotFoundException {
repoInit.initEmptyRepository(hgDir);
assert (repoInit.getRequires() & FNCACHE) != 0;
// XXX perhaps, with WriteDownMate moving to a more appropriate location,
// we could instantiate HgRepository (or Internals) by other means, without exception?
fncacheFile = new FNCacheFile(Internals.getInstance(new HgLookup(ctx).detect(hgDir)));
}