问题
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:
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.
来源:https://stackoverflow.com/questions/42326455/sync-svn-and-mercurial-repo