是否有一个好的做法来创建“trunk”子目录的分支?

发布于 2024-09-11 18:14:59 字数 159 浏览 1 评论 0原文

我有一个项目,包含很多部分。我将只为项目的一部分而不是整个项目创建一个分支。

有这样做的好习惯吗?

或者,我应该分支整个“主干”,以避免一些问题?

我认为,唯一的问题是对项目的哪些部分实际上是分支的感到困惑。因为 svn 延迟只复制文件夹的内容,所以被分支

I have a project, that contains many parts. I'm going to make a branch for only a subpart of the project, rather the entire project.

Is there a good practice to do so ?

Or, i should branch the entire "trunk", to avoid some problems ?

The only problem, i see, is a confusion about - what part of the project was actually branched. Because svn lazy copies only content of the folder, being branched

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

把昨日还给我 2024-09-18 18:14:59

遵循 svn 标准,您只能从 tagtrunk 创建分支。因此,以下是很好的做法:

 svn copy project/trunk project/branches/<branch_name>

或者

 svn copy project/tags/<some_tag> project/branches/<branch_name>

在这种情况下,您不会担心服务器上的额外空间,因为这些是“虚拟”副本,svn 服务器在修订版之间的实际差异下运行。

Following svn standards, you can make branch only from tag or trunk. So, the following are good practice:

 svn copy project/trunk project/branches/<branch_name>

or

 svn copy project/tags/<some_tag> project/branches/<branch_name>

You wouldn't bother about extra space on server in this case since these are "virtual" copies, svn server operates with real differences between revisions.

往事随风而去 2024-09-18 18:14:59

我会选择整个树干的树枝,它不贵。

i would go for branch of whole trunk, its not expensive.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文