使用 TFS 暂存提交有哪些策略?
我正在使用 TFS 2010 作为源代码控制系统,并且遇到的问题是我想要进行多次提交,但由于需要审查的策略而无法签入它们。
我想做更多的提交(几乎每隔几分钟)而不是评论。基本上,我想提交到某个临时位置,然后当有人审查各个提交时,他们会被提升到主源代码控制。
搁置不能正确解决这个问题,因为您无法直接提交搁置集。由于它不是 DVCS,因此我无法进行本地提交。
我唯一的选择是创建一个私有分支并让审阅者将其合并到主干中吗?
或者对于这种情况有一个明智的选择吗?
I'm using TFS 2010 as a Source Control System and have the problem that I want to do multiple commits, but cannot check them in because of a policy that requires a review.
I want to do more commits (pretty much every few minutes) than reviews. Basically I want to commit to some temporary place and then when someone reviews the individual commits they get promoted to the main Source Control.
Shelving doesn't solve this properly, because you cannot commit a Shelveset directly. Since it's not a DVCS, I cannot do local commits.
Is my only option to create a private branch and have the reviewer merge it into the trunk?
Or is there a sane alternative for this scenario?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我建议设立一个单独的分支机构。
您基本上会遵循质量分支模式。未经审查的代码分支、已审查的代码分支。
A separate branch is what I would recommend.
You'd basically be following a branch by quality pattern. Unreviewed Code Branch, Reviewed Code Branch.
它现在对您没有帮助,但在 Dev11 中,我们提供了代码审查功能,您可以将其用于此类流程。您可以在 Cameron 和 Brian 的 \BUILD\ 演示文稿 中看到它的杰米。
您还可以下载 开发者预览版的副本供您自己使用
It is not helping you right now, but in Dev11 we are shipping the Code Review feature which you can use for these kind of processes. You can see it in the \BUILD\ presentation of Cameron and Brian and of Jamie.
You can also download a copy of the Developer Preview to play with it yourself