Sync svn and mercurial repo

2019-09-06 16:30发布

We have an active svn repository and we are planning a migration to mercurial. The idea is to create a new mercurial repo, sync the svn repo with it with history, create a teamcity build for it and move two developers onto mercurial solely to trial it out and make sure its all kosher.

This means we need bi-directional sync between svn and mercurial. I have seen this link Syncing SVN to Mercurial using svnsync & hg convert -- misses svn:externals? which sort of describes a way but it is fairly clunky and manual.

Is there a better way to achieve this?

Thanks for reading

1条回答
forever°为你锁心
2楼-- · 2019-09-06 16:40

I suggest you try to use only the HgSubversion plugin for Mercurial.

There is a reference for it in the Mercurial wiki.

The process is simple, install the plugin, then use Mercurial to clone from Subversion. After that, you can use HG commands to synchronize from/to the SVN repository.

查看更多
登录 后发表回答