本地Mercurial - 远程SVN

时间:2011-02-25 13:58:26

标签: mercurial dvcs

我非常喜欢Mercurial。但是我工作的大部分公司还没准备好改用Mercurial。所以我想知道是否有一种方便的方法来使用本地Mercurial存储库并提交(我将以其他方式推送到我的远程Mercurial存储库)到公司的svn。我更喜欢一种可以作为MercurialEclipse用户轻松集成到我的工作流程中的解决方案。

2 个答案:

答案 0 :(得分:4)

看看WorkingWithSubversion

如果要将更改直接推送到svn,首先从svn中提取最新更改,然后将更改重新绑定到svn HEAD并将其推回。

$ hg pull --svn # pull the changes from svn
$ hg up your_head # update the repo to the head of the changes you want to push to svn
$ hg rebase --svn # rebase your_head onto svn
$ hg push --svn

答案 1 :(得分:2)

查看HgSubversion,它应该符合您的需求。

然后,您可以将Mercurial用作Subversion客户端。