- From bitbucket.org, log in, find the repo you want to contribute to, use the web UI to fork it under your account.
yum install git-remote-hg- Clone your fork using git
- Generic format is:
git clone hg::$URL - So for my fork of astroid, the command looks like:
git clone hg::ssh://hg@bitbucket.org/crobinso/astroid
- Generic format is:
- Create a git branch, the name must start with 'branches/' to make mercurial happy when we eventually push things. So something like:
git checkout -b branches/myfix - Make your changes in the branch
- Push the branch to your repo:
git push origin branches/myfix - Use the bitbucket web UI to submit a pull request.
- That's it.
(Hopefully in the near future more of the python ecosystem will move to git.)