0

我目前正在为工作中的一个新项目设置 TFS,并提出了在源代码的根目录中仅包含以下 3 个目录的想法。

  • 树干
  • 分支机构
  • 标签

主干 - 这将包含所有其他分支从中派生的代码库。

分支 - 这将包含开发期间使用的代码库的所有分支。

tags - 将包含使用以下结构标记的所有版本

标签\项目 x\version-1.1\staging

标签\项目 x\version-1.1\live

但是,这种标记目录结构让我想到,它们无法区分来自主干的发布和来自特定分支的发布。

因此,最好在主干和每个单独的分支中都有标签文件夹吗?

4

1 回答 1

0

When you build a production release version, you should tag it. The tag could include its origin, e.g.

-> Tags

-> Production from Trunk (02/02/2013 17:45:21)

-> Production from Branch [EBF - Incident 90210] (03/02/2013 19:13:11)  

This should be possible to automate with most continuous integration tools.

于 2013-02-11T11:12:18.143 回答