| | 1 | = Mercurial Branches = |
| | 2 | |
| | 3 | This page documents how to use Mercurial, rather than Subversion, to hack on Django. |
| | 4 | |
| | 5 | == Core developers == |
| | 6 | |
| | 7 | For people who are core committers, and want to use Mercurial rather than Subversion as their client: |
| | 8 | |
| | 9 | 1. Install the [http://mercurial.selenic.com/wiki/HgSubversion hgsubversion] extension (and understand basically how it works). |
| | 10 | 2. Clone the Subversion repository: |
| | 11 | {{{ |
| | 12 | hg clone svn+http://code.djangoproject.com/svn/django/ django |
| | 13 | }}} |
| | 14 | This will take a while. |
| | 15 | 3. Use normal hg commands to make commits, switch branches, push back to the subversion repository etc. |
| | 16 | |
| | 17 | === Tips === |
| | 18 | |
| | 19 | * Use the [http://mercurial.selenic.com/wiki/BookmarksExtension bookmarks] extension for git-style local feature branches. |
| | 20 | * To collapse several commits into a single commit before pushing back to svn, use the [http://mercurial.selenic.com/wiki/HisteditExtension histedit] extension |
| | 21 | * To backport a changeset from trunk, use the [http://mercurial.selenic.com/wiki/TransplantExtension transplant] extension |