TortoiseHgis the Microsoft Windows version of Mercurial but available also on OSX and linux.
Step 1. Installing TortoiseHG (on windows)¶
- Download the all-in-one installer (MSI version) from the Bitbucket repository .
If you downloaded the file to a folder on your local machine, you can also click the downloaded file's icon to run the installer. When you've successfully started the installer, you should see the TortoiseHg Setup wizard screen:
The version shown on your screen may be different than the one shown here of course. That is ok as long as you are installing a TortoiseHg that supports Mercurial version 1.7 or later.
- Press Next to move to the next page of the wizard.
The setup displays the license agreement.
- Press Next to accept the license agreement and continue.
For this setup, use all the default setup values recommended by installer.
- To accept all the defaults, press Next on each page of the dialog that comes after the license agreement until the wizards prompts you to install.
- Press Install to install the software.
- Press Finish on the final page of the dialog to complete the installation.
You may need to restart your system for the installation to take effect.
Do the following to configure your global default username and email:
- Right-click in your Desktop to open the context menu.
The system displays the right hand context menu:
- Click the Hg Workbench item.
The system opens the TortoiseHg Workbench application.
- Choose File > Settings to open the TortoiseHg Settings dialog.
- Locate the Commit section on the left hand side and click it.
- Fill in the Username value using the following format:
When done the dialog looks similar to this:
- Press OK to save your changes.
Step 2. Install PuTTYgen and configure PuTTY¶
PuTTYgen is a free RSA and DSA key generation tool. You'll learn more about RSA, DSA, and key generation later in this tutorial. If you don't have PuTTYgen installed, do the following:
- Download the proper version for your system.
The PuTTYgen utility is a single executable file.
- Move the puttygen.exe executable to the C:\Program Files\TortoiseHg folder.
- Start Putty.
The PuTTy Configuration dialog displays. Use this dialog to configure your PuTTy sessions.
- Under the Session node, select Default Settings and press Load.
This allows you to edit the Default Settings session configuration.
- Under the Connection node, click SSH.
The Options controlling SSH connections display.
- Check Enable compression.
This option can improve performance of a low-band connection.
- Click the Session node, select Default Settings and press Save.
- Click the Close button (red x).
Continue with setting up ssh access to the DevZone