/* 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!
本文详细介绍了如何在Windows系统上使用TortoiseHg与hgsubversion扩展克隆Subversion仓库的过程,包括安装要求、配置步骤及实际操作演示。
1673

被折叠的 条评论
为什么被折叠?



