问题描述
我有一个 subversion 项目,它有一个存储库和 trunk
、tags
、branches
顶级项目.对于这个项目,trunk
包含一个文件夹,用于存放诸如common"、libs"、core"、help"、install"、tests"等重要部分.问题是:是吗?在 subversion 中有效分支 trunk/common
还是我需要总是分支整个 trunk
?
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
?
我已经检查过 - 在分支 trunk/common
时一切似乎都很好,但是 TortoiseSVN 没有在 revision graph
中显示这样的分支 :(.这让我看到了假设在 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
.
推荐答案
您可以在 SVN 中对每个目录进行分支,但最好从主干分支.tortoise 的结果是因为 TortoiseSVN 假设分支是由主干文件夹而不是子文件夹组成的.问题是你为什么要尝试,你期望分支"一个子文件夹而不是主干有什么好处?
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?
这篇关于在 subversion 中分支子文件夹是否有效?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!