Checkout SVN repository using TortoiseHg

 

/* Well done… */

I didn’t know Clone dialog of TortoiseHg 1.0 can be used to checkout Subversion repository without any hack. Did you know?

Anyway, this is a blog entry, not a tweet of Twitter, so I’ll put some explanation how to setup hgsubversion and TortoiseHg on Windows.

thg-hgsvn

/* Setup */

TortoiseHg has a well-written manual and you can see how-to at hgsubversion section. However, I’d like to describe it here.

Requirements
  • TortoiseHg 1.0 (not 0.9.x series)
  • hgsubversion Extension (not bundled in Mercurial)

First, you need to download TortoiseHg 1.0 (or above) installer from the official website and install it in your PC. Note that there are two installers; 32-bit and 64-bit from version 1.0. In some case, TortoiseHg installer requires reboot (or re-login) after installing.

Next, latest hgsubversion Extension, which is not bundled Mercurial. So you have to get it from a remote repository.

  1. Open Clone dialog
  2. Input http://bitbucket.org/durin42/hgsubversion to “Source” field
  3. Input destination path to “Dest” field (I recommend simple path: c:workhgsubversion)
  4. Push “Clone” button

OK, we got all requirements, let’s check and see configuration file to enable hgsubversion extension. Please open your Mercurial.ini or .hgrc file with preferred text editor and append following line in [extensions] section:

hgsubversion = c:workhgsubversionhgsubversion

Here is an overview of [extensions] section if you enabled lots of extensions:

[extensions]
hgext.mq =
hgext.rebase =
hgext.transplant =
hgext.bookmarks =
hgext.purge =
hgext.progress =
hgsubversion = C:workhgsubversionhgsubversion

/* Checkout! */

Let’s checkout SVN repository.

  1. Open Clone dialog
  2. Input URL of SVN repository to “Source” field
  3. Push “Clone” button

Hehe, it’s so easy to done. Thanks!

enjoy TortoiseHg and Subversion! ;)

Written by kuy

March 21st, 2010 at 4:25 pm

3 Responses to 'Checkout SVN repository using TortoiseHg'

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值