在 TFS 中分支以获得年度发布计划?

发布于 2024-08-31 23:24:07 字数 543 浏览 3 评论 0原文

问题: 根据下面提供的信息创建开发和发布分支的最佳实践是什么?

背景: 我在一个小型开发团队工作(2.25 个前端,2 个后端),我们有每年的发布计划。我们的环境不允许在年中提供补丁或服务包,但每隔一段时间,如果我们的用户环境发生变化,我们就会发布一个“重新编译”的版本,其中包含一些错误修复(在当前稳定版本)。

目前,我们在主线上进行所有开发,然后为代码冻结创建一个分支(到目前为止有 5 个),并进行小错误修复和大部分测试。一旦版本被发送出去进行分层和部署,我们就会将这些错误修复合并回主线,并继续为明年的版本开发新功能。该分支永远保留在我们的存储库中。

TFS 执行分支的方式是在源代码管理中创建一个新的“文件夹”,并且它开始变得有点混乱。

想法: 也许我们这样做的方式是正确的,但感觉再过几年,就会有大量的树枝永远不会被触及……似乎永远不会。也许可以创建一个单独的“稳定版本”行,其中标记了每个新版本,然后如果我们需要返回进行年中发布,则可以从该行中恢复它。

Question:
What is the best practice for creating branches for development and release based on the information provided below?

Background:
I work in a small development team (2.25 frontend, 2 backend), and we have a yearly release schedule. Our environment does not allow for patches or services packs mid-year, but every once in a while if our user's environment changes we will release a "recompiled" version with a few bug fixes thrown in (on the current stable version).

Currently we do all of our development on the mainline and then create a branch (5 so far) for the code freeze and do minor bug fixes and the bulk of our testing. Once the version is sent out for layering and deployment we merge these bug fixes back to the mainline where we have continued to develop new functionality for next year's release. The branch stays in our repository forever.

The way TFS does its branches is by having a new "folder" in the source control, and it is starting to get a little cluttered.

Thoughts:
Maybe the way we are doing this is right, but it just feels like in a few more years there will be a large number of branches that are never going to be touched... seemingly ever. Maybe it is possible to create a single "Stable Release" line that has each new version labeled on it, and then if we need to go back to do a mid-year release then it can be recovered from this single line.

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

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

发布评论

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

评论(2

逐鹿 2024-09-07 23:24:07
  • 尽快将您的环境升级到 2010 - TFS 2010 分支功能更加出色,包括管理。

    尽快将

  • 你的想法听起来不错 - 当你有一个发行版本时,你会分支一个发行版本,然后修复它。

    你的想法听起来不错 - 当你有

  • 你只需要忍受版本的积累。这是有道理的 - 直到你完全退役一个旧版本(这里“永远”并不真实,我打赌 7-8 年后你会杀死一个旧版本),根本没有其他办法。

  • Upgrade your environment to 2010 ASAP - TFS 2010 branching is vastly superior, including management.

  • Your idea sounds about right - you branch off a release version when you have one, then just fix it.

  • You just have to live with the versions accumulating. This makes sense - until you totally retire one (and "never" is not real here, I bet after 7-8 years you kill an old version) there simply is no other way.

凉风有信 2024-09-07 23:24:07

我工作过的一些地方会这样处理:

  • 开发人员从不直接接触“主”分支,它总是代表生产中的内容
  • 单个“维护”分支用于全年的所有更改。
  • 年底,在所有更改准备就绪后,适当地标记所有内容,并将维护分支合并回主线。从主线准备并发送了一个新的发布版本。
  • 维护分支中正在发生持续的变化。
  • 冲洗并根据需要重复。

好处是你只有 2 个分支。这使得一些 SCM 相关任务更容易处理,因为您不必继续处理更改文件夹名称等问题。

A few places I have worked would handle that like this:

  • Devs never touch "main" branch directly and it always represents what is in production
  • A single "maintenance" branch is used for all of your changes throughout the year.
  • At the end of the year, after all of the changes are ready to go, label everything approprirately and the maintenance branch is merged back into the mainline. A new release build is prepared from the mainline and sent out.
  • Ongoing changes happen in the maintenance branch.
  • Rinse and repeat as needed.

Benefit is that you only ever have 2 branches. That makes some SCM related tasks easier to deal with since you don't have to keep dealing with changing folder names, etc.

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