Configuring TortoiseHg

本文详细介绍了如何配置TortoiseHg客户端,包括设置全局选项、选择合并工具、配置更新操作、填写用户名和邮箱、启用预填用户名密码等功能,以及如何配置TortoiseHg发送邮件通知当推送到远程仓库时。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值