| 17 | |
| 18 | == Windows Tips |
| 19 | First thing, you will need a Mercurial client. |
| 20 | - The "raw" command-line client can be downloaded here: http://mercurial.selenic.com/ |
| 21 | - A GUI client also exists, surprisingly named [http://tortoisehg.bitbucket.org/ TortoiseHG] |
| 22 | |
| 23 | It is considered Good Practice to first get things working with command-line, before moving to GUI-based solutions. |
| 24 | |
| 25 | === Basic configuration |
| 26 | You will need to create a configuration file: |
| 27 | - On Windows XP and earlier, create `C:\Documents and Settings\USERNAME\Mercurial.ini` |
| 28 | - On Windows Vista and newer, create `C:\Users\USERNAME\Mercurial.ini` |
| 29 | |
| 30 | Important settings for working with the Trac Mercurial mirror: |
| 31 | {{{ |
| 32 | #!ini |
| 33 | [extensions] |
| 34 | convert = |
| 35 | eol = |
| 36 | graphlog = |
| 37 | ; See below concerning external extensions |
| 38 | hgsvnutils = \path\to\HgExts\HgSvnUtils\HgSvnUtils.py |
| 39 | |
| 40 | [diff] |
| 41 | git = true |
| 42 | }}} |
| 43 | |
| 44 | === Mercurial Extensions |
| 45 | For details on the concept of extensions see http://mercurial.selenic.com/wiki/UsingExtensions |
| 46 | |
| 47 | An important external extensions for Trac development with Mercurial is the [http://rc.c-space.org/hg/HgSvnUtils HgSvnUtils] extension (maintained by RemyBlank). |
| 48 | |
| 49 | To install it, go to some local directory and run (from command-line) |
| 50 | {{{ |
| 51 | hg clone http://rc.c-space.org/hg/HgSvnUtils |
| 52 | }}} |
| 53 | and then set the `hgsvnutils` option mentioned above to the checked-out location. |
| 54 | |
| 55 | === Working with BitBucket |
| 56 | Once you installed Mercurial command-line client, you can `hg clone http://bitbucket.org/edgewall/trac` (or any other public repository). |
| 57 | |
| 58 | After creating an account and a repository (or Trac-fork), you will also be able to push & pull changes against the remote repository: |
| 59 | - Using `https://USERNAME@bitbucket.org/USERNAME/reponame` over SSL (built-in support in the Mercurial client); or |
| 60 | - Using `ssh://hg@bitbucket.org/USERNAME/reponame` over SSH (note that this uses `hg` as username!)[[BR]] |
| 61 | For this you will need `ssh` client, which is not native to Windows, as well as setting up SSH keys and uploading the public key to your BitBucket account. You may obtain a `ssh` client for Windows (like `plink.exe`), but why bother..? |