从 Mercurial 转换为 Subversion [英] Converting from Mercurial to Subversion
问题描述
由于在一些工具中缺乏 Mercurial 支持以及管理层的压迫,为了符合公司标准,必须将多个试用 Mercurial 存储库转换为 Subversion.
Due to lack of Mercurial support in several tools, and managerial oppression it has become necessary to convert several trial Mercurial repositories to Subversion in order to conform with the company standard.
是否有任何工具或建议可以在不丢失修订历史等的情况下实现这一目标?
Are there any tools or suggestions for how to achieve this without a loss of revision history and the like?
推荐答案
mercurial 附带的 convert 扩展可以将 mercurial 用作 src,将 subversion 用作 dest.
The convert extension that ships with mercurial can use mercurial as a src and subversion as a dest.
hg convert --dest-type svn hgreponame svnreponame
确保在您的 .hgrc 文件中启用它.
Make sure to enable it in your .hgrc file.
如果您想继续偷偷地使用 mercurial,那么 hgsubversion 将允许您进行双向同步.
If you want to keep using mercurial on the sly, then hgsubversion will allow you to do bidirectional sync.
这篇关于从 Mercurial 转换为 Subversion的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!