Add .gitignore based on .hgignore.