Edgewall Software

Changes between Version 2 and Version 3 of BitBucket


Ignore:
Timestamp:
Oct 9, 2010, 8:48:58 PM (14 years ago)
Author:
Itamar Ostricher
Comment:

added some tips for Windows users

Legend:

Unmodified
Added
Removed
Modified
  • BitBucket

    v2 v3  
    1515
    1616Note that we maintain an official Mercurial mirror of the SubversionRepository there, see [http://bitbucket.org/edgewall/trac edgewall/trac].
     17
     18== Windows Tips
     19First 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
     23It is considered Good Practice to first get things working with command-line, before moving to GUI-based solutions.
     24
     25=== Basic configuration
     26You 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
     30Important settings for working with the Trac Mercurial mirror:
     31{{{
     32#!ini
     33[extensions]
     34convert =
     35eol =
     36graphlog =
     37; See below concerning external extensions
     38hgsvnutils = \path\to\HgExts\HgSvnUtils\HgSvnUtils.py
     39
     40[diff]
     41git = true
     42}}}
     43
     44=== Mercurial Extensions
     45For details on the concept of extensions see http://mercurial.selenic.com/wiki/UsingExtensions
     46
     47An important external extensions for Trac development with Mercurial is the [http://rc.c-space.org/hg/HgSvnUtils HgSvnUtils] extension (maintained by RemyBlank).
     48
     49To install it, go to some local directory and run (from command-line)
     50{{{
     51hg clone http://rc.c-space.org/hg/HgSvnUtils
     52}}}
     53and then set the `hgsvnutils` option mentioned above to the checked-out location.
     54
     55=== Working with BitBucket
     56Once you installed Mercurial command-line client, you can `hg clone http://bitbucket.org/edgewall/trac` (or any other public repository).
     57
     58After 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..?