Add a .hgignore file when creating a repository.