/* 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.
/* 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.
- Open Clone dialog
- Input http://bitbucket.org/durin42/hgsubversion to “Source” field
- Input destination path to “Dest” field (I recommend simple path:
c:workhgsubversion
) - 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.
- Open Clone dialog
- Input URL of SVN repository to “Source” field
- Push “Clone” button
Hehe, it’s so easy to done. Thanks!
enjoy TortoiseHg and Subversion!