在 TFS 中分支以获得年度发布计划?
问题: 根据下面提供的信息创建开发和发布分支的最佳实践是什么?
背景: 我在一个小型开发团队工作(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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尽快将您的环境升级到 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.
我工作过的一些地方会这样处理:
好处是你只有 2 个分支。这使得一些 SCM 相关任务更容易处理,因为您不必继续处理更改文件夹名称等问题。
A few places I have worked would handle that like this:
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.