2011-02-25 30 views
4

我非常喜歡Mercurial。但是,我工作的大多數公司還沒有準備好更換爲Mercurial。所以我想知道是否有一種方便的方式來使用本地Mercurial存儲庫並提交給我公司的svn(我會推到我的遠程Mercurial回購)。我更喜歡一種可以很容易地作爲MercurialEclipse用戶集成到我的工作流中的解決方案。本地Mercurial - 遠程SVN

回答

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 
2

看看HgSubversion,它應該適合您的需求。

然後,您可以使用Mercurial作爲Subversion客戶端。