1
edit
Changes
no edit summary
:8- mq tutorial [http://mercurial.selenic.com/wiki/MqTutorial]
:9- ant task for hg [http://ant4hg.free.fr/specifications.html#functionality-init ANT4HG]
* Branch & Merge
: To create a new branch: <code> hg branch ws</code>
: Then commit it: <code> hg ci -m 'added branch ws'</code>
: To see all branches: <code> hg branches</code>
: To switch between branches: <code> hg update ws </code>
: To clone a branch to local directory: <code> hg clone -b ws work workCopy/work</code>
: After commit a change to the copy of code, just push it <code> hg push</code>, it will be pushed to ws branch in main repository
: In main repository if you want to merge these 2 branches first see how many heads you have <code> hg heads </code>
: Then merge with the revision of the branch you want to merge with: <code> hg merge -r 3 </code>
: Don't forget to commit this merge!
==Challenges==
* 1- First challenge is how to trim history of a repository.