Is it valid in subversion to branch a subfolder?

こ雲淡風輕ζ 提交于 2020-02-01 03:11:08

问题


I have a subversion project that have a repository and trunk, tags, branches top-level items. For this project, trunk contains a folders for a big parts like 'common', 'libs', 'core', 'help', 'install', 'tests' etc. The question: is it valid in subversion to branch trunk/common or do i need to always branch entire trunk?

I have checked - all seems work fine while branching trunk/common, but TortoiseSVN don't show such branches in revision graph :(. This leads me to the assumption that it is not correct to branch something over than trunk.


回答1:


You can branch every directory in SVN but it's a best practice to branch from trunk. The result in tortoise is cause TortoiseSVN assumes branches are made from trunk folder instead of subfolders. The questions is why do you try that an what advantages do you expect from "branching " a sub-folder instead of trunk?



来源:https://stackoverflow.com/questions/4024454/is-it-valid-in-subversion-to-branch-a-subfolder

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