Converting mercurial repository to svn repository

女生的网名这么多〃 提交于 2019-12-23 12:18:05

问题


I know you can convert svn repository to mercurial repository (or use mercurial as a client to svn repo) but what I want is to convert mercurial repository to svn repository.

We have some tool that uses SVNKit, and we'd like to continue use it, but want to be able to work on mercurial repository. Hence we want to completely convert mercurial repo to svn repo. Is that something that's possible? (and how?)


回答1:


Consider using hgsubversion which lets you work on a svn repo from within mercurial, which it sounds like is your real goal.

Alternately you can use the 'convert' command inside mercurial to do the convert:

hg convert --dest-type svn mercurialpath subversionpath

where convert has some options you can find with hg help convert that will affect the outcome.




回答2:


Perhaps Tailor can help?

Another question suggests Mercurial's ConvertExtension. I thought that was strictly for importing to Mercurial, but apparently not.



来源:https://stackoverflow.com/questions/2570520/converting-mercurial-repository-to-svn-repository

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!