Introduction
The purpose ofthis document is to give instruction on configuring TortoiseHg (Tortoise) andproperly securing access to Hg repositories.
Configuring Tortoise
From yourdesktop, right click to receive the following dialog. Select TortoiseHgand Global Settings.
In GlobalSettings, select TortoiseHG (on theleft), then on the right, select kdiff3as Three_Way-Merge Tool. You can type in the path of an editor if youlike in the Visual Editor Field. (Ifthere is another merge tool, you would prefer to use, you can enter the path ofthat tool.)
Select Workbench (on the left), then on theright, select “update” for After PullOperation. Note for Java Developers, this is similar to MyEclipseBlue Hg Pluginwhere the option to update after pull is checked.
Select Commit(on the left), then on the right, enter your name and userid@atpco.net in the Username field.
Select Extensions(on the left), then on the right, check mercurial_keyring. This supports pre-filling your username andpassword after the first attempt.
Click Edit File. You may be prompted to save yourchanges. If so, do select Save.
Append the following lines to the file andclick Save.
[web]
cacerts=
[auth]
myremote.schemes= https
myremote.prefix= https://atphg.atpco.org
myremote.username= [your userid]
The file should appear as follows. Note that other configurations in this fileshould not be changed:
On the Global Settings Dialog, click OK to complete the process. As indicated here, you may be prompted torestart all TortoiseHg applications. Ifso, select OK.
Configuring Tortoise to Send Email When Pushingto Remote Repository
If an email isrequired everytime a push is executed to a remote repository, each user shouldfollow the instructions below.
From yourdesktop, right click to receive the following dialog. Select TortoiseHgand Global Settings.
Select Extensions(on the left), then on the right, check notify. As indicated here, you may beprompted to restart all TortoiseHg applications. If so, select OK.
Click Edit File. You may be prompted to save yourchanges. If so, do select Save.
Insert the following line in the [web] section.
baseurl= https://atphg.atpco.org
Append the following lines to the file andclick Save.
[smtp]
host= mailhost
local_hostname= webmail.atpco.net
[email]
from= NTesterman@ATPCO.NET (replace with your own address)
method= smtp
[hooks]
outgoing.notify= python:hgext.notify.hook
[notify]
sources= serve push unbundle
test= False
config=
template=
rhodecode: {baseurl}/
repository: {webroot}
changeset: {rev}:{node|short}
user: {author}
date: {date|date}
description: {desc}\n
maxdiff= 300
strip= 4
If emails are to be sent to the samedistribution list when you push to all remote repositories append the followinglines (substituting your email distributions) and click Save. Alternatively, you canomit the [reposubs] section in the generalsettings file, and, instead include them forspecific repositories (see instructions following the [reposubs] section. This approach can also be taken if youhave distribution lists specific torepositories.
[reposubs]
*= MGRITS21@ATPCO.NET,SJayaraman@ATPCO.NET,SPalani@ATPCO.NET,PSharma@ATPCO.NET,
PKaul@ATPCO.NET,ADavuluri@atpco.net,VChawla@ATPCO.NET,SAnbarasu@ATPCO.NET,SKakumani@ATPCO.NET,MNaik@ATPCO.NET
To add the [reposubs] section to specific repositories, navigate to thefolder that represents your local repository. Edit the hgrc file under the .hg folder and append the [reposubs]section to the contents of the fle.
The file should appear as follows. Note that other configurations in this fileshould not be changed:
Below is an example of adding the [reposubs]section to a specific repository. Thelocal repository address is C:\Users\atp1nmt\prod\cm\SER_cm,so what follows is the contents of C:\Users\atp1nmt\prod\cm\SER_cm\.hg\hgrc