File hgBinFile = new File(hgBin);
if (hgBinFile.isAbsolute() && !hgBinFile.exists()) {
throw new IllegalArgumentException("" + hgBin + " does not exist");
}
this.server = new Server(hgBin);
this.server.setStderrBufferSize(this.configuration.getStderrBufferSize());
this.server.setErrorAction(this.configuration.getCodingErrorAction());
this.server.incrementRefCount();
if (performInit) {
this.server.initMecurialRepository(directory);