从 Mercurial 转换为 Subversion [英] Converting from Mercurial to Subversion

查看:17
本文介绍了从 Mercurial 转换为 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆