| 1 | = How to use Mercurial = |
| 2 | |
| 3 | Mercurial is a free, distributed source control management tool. It efficiently handles projects of any size and offers an easy and intuitive interface. |
| 4 | |
| 5 | == Command line == |
| 6 | |
| 7 | {{{ |
| 8 | hg status #Check if you have the last repository version downloaded |
| 9 | |
| 10 | hg add #Add elements flagged as ? |
| 11 | |
| 12 | hg commit -m "Your message" #Commit changes and include a message |
| 13 | |
| 14 | hg diff -c tip #See differences in the last commit |
| 15 | |
| 16 | hg help config #Shows help tips |
| 17 | |
| 18 | }}} |
| 19 | |
| 20 | == Mercurial Typical errors == |
| 21 | |
| 22 | === abort no username supplied === |
| 23 | |
| 24 | If does not exist, create a file in .hg called hgrc and include the following: |
| 25 | |
| 26 | {{{ |
| 27 | [paths] |
| 28 | default = http://your_domain/hg/project_name |
| 29 | [ui] |
| 30 | username = Your name and surname <Your email> |
| 31 | }}} |
| 32 | |
| 33 | |
| 34 | == Links == |
| 35 | Check http://mercurial.selenic.com/wiki/QuickStart for further details |