endflow.net blog

/* programming and programming */

Checkout SVN repository using TortoiseHg

with 3 comments

/* 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'

Subscribe to comments with RSS or TrackBack to 'Checkout SVN repository using TortoiseHg'.

  1. [...] This post was mentioned on Twitter by やまもとかずき, Yuki Kodama. Yuki Kodama said: ブログ書いた: TortoiseHgでSVNリポジトリをチェックアウトできちゃった件: http://blog.endflow.net/?p=298 [...]

  2. [...] This post was mentioned on Twitter by MKinside. MKinside said: Reading: TortoiseHgでSVNリポジトリをチェックアウトできちゃった件 | endflow.net blog http://blog.endflow.net/?p=298&lang=ja [...]

  3. I do not think I’ve seen this depicted that way before. You really have made this so much clearer for me. Thank you!

Leave a Reply