问题
I've been using Mercurial for quite some time and I'd like to start using Heroku as a deployment platform. However, they seem to support Git only. Does anybody knows how to Heroku using Mercurial?
回答1:
Once you have installed the Hg-Git mercurial plugin, add an alias to the .hg/hgrc of your repository:
[alias]
push-heroku = push git+ssh://git@heroku.com:<app name>.git
You are now able to push your application to Heroku:
hg push-heroku
Be aware that Heroku does not link your repository name with the remote Heroku app name by default.
回答2:
You can use the Hg-Git Mercurial Plugin
回答3:
Use hg-git and add this to the repository's .hg/hgrc file under [paths]:
heroku = https://git.heroku.com/<app-name>.git
Now you can deploy by typing:
hg push heroku
It will prompt for username and password. These were stored in your ~/.netrc file when you ran heroku login (don't try to use your heroku account password, it won't work). Copy and paste from there. See: https://devcenter.heroku.com/articles/git#http-git-authentication for more information about authentication.
来源:https://stackoverflow.com/questions/9591380/how-to-deploy-to-heroku-using-mercurial