This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
test:pullrequests [2013/05/29 15:34] – Corrected steps - no need to merge branches rhauck | test:pullrequests [2014/12/09 15:48] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 7: | Line 7: | ||
- Install hg-git, see: http:// | - Install hg-git, see: http:// | ||
- | * :!: Important: Do not install the latest version as there are known problems. Instead, install version 0.3.4, which has been tested to work with the latest version of Mercurial, | + | * :!: Important: Do not install the latest version as there are known problems. Instead, install version 0.3.4, which has been tested to work with the latest version of Mercurial. For example, if you used easy_install, do: < |
+ | * :!: Be sure to add the hggit entry to your .hgrc file as docuemented on http:// | ||
- Turn on the ' | - Turn on the ' | ||
- If you don't already have one, clone the Mercurial repository: < | - If you don't already have one, clone the Mercurial repository: < | ||
Line 14: | Line 15: | ||
- In the test-github repository, pull from the repository listed in the Pull Request:< | - In the test-github repository, pull from the repository listed in the Pull Request:< | ||
* The first time you do this will take a loooong time as it exports the hg data to git format (long as in 3-4 hours, the progress extension helps you see what's going on). This is a one-time operation; subsequent pull requests happen quickly. | * The first time you do this will take a loooong time as it exports the hg data to git format (long as in 3-4 hours, the progress extension helps you see what's going on). This is a one-time operation; subsequent pull requests happen quickly. | ||
+ | * :!: Note: You may see a message like: < | ||
- (Optional) To confirm you've pulled the changes from Github, compare your two local clones. < | - (Optional) To confirm you've pulled the changes from Github, compare your two local clones. < | ||
- Merge those commits < | - Merge those commits < | ||
Line 19: | Line 21: | ||
- Push to the test-master local clone < | - Push to the test-master local clone < | ||
- Switch to the root directory of the test-master < | - Switch to the root directory of the test-master < | ||
- | - (Optional) To confirm you've pulled the changes from the second local clone, again, compare your two local clones. < | + | - (Optional) To confirm you've pulled the changes from the second local clone, again, compare your two local clones. < |
- | - Merge those commits into your test-master clone < | + | - Check if the new branch created additional heads:< |
- | - Commit the merge < | + | cd ../ |
+ | hg heads | ||
+ | </ | ||
+ | - If there is more than one head, merge the branch: | ||
+ | hg merge | ||
+ | hg commit -m " | ||
+ | - or possibly rebase it - | ||
+ | hg rebase | ||
+ | </ | ||
+ | - If there is only one head, continue to the next step | ||
- Push the changes to the server: < | - Push the changes to the server: < |