Mercurial and SVN side by side in same working directory?

隐身守侯 提交于 2019-12-23 07:51:37

问题


Our environment currently uses SVN. I would like to commit alot more often, but I don't want to break any of the main branches. Personally I love mercurial much much more than SVN. If I hg init a repository in my SVN working copy would any issues arise if I just commit into the mercurial repository on a regular basis and committed working revisions into the SVN branch?

Our environment is not currently setup such that each developer has their own SVN branch, and so this is not a viable solution currently.


回答1:


There will not be any problem with having Mercurial and Subversion share a working folder. Subversion keeps its files in .svn folders while Mercurial keeps its files in a .hg folder at the top level.

For convenience, you may consider adding a .svn/ entry to your .hgignore file so you don't accidentally commit .svn folders in your Mercurial repository.

That being said. You do not necessarily need to use Subversion at all. Mercurial can interface with Subversion without a subversion client. See Working with Subversion.



来源:https://stackoverflow.com/questions/6549777/mercurial-and-svn-side-by-side-in-same-working-directory

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