@Override
  public void initRepository(@NotNull File rootDir) throws VcsException {
    HgCommandResult result = new HgInitCommand(ProjectManager.getInstance().getDefaultProject()).execute(rootDir.getPath());
    if (HgErrorUtil.hasErrorsInCommandExecution(result)) {
      throw new VcsException(result.getRawError());
    }
  }
@Override
  public void initRepository(@NotNull File rootDir)