TFS 工作项以及与变更集的自动关联
警告 - 新手问题......
我的愿景是我可以选择我正在处理的工作项,并且当我签入代码时,我可以自动将变更集与工作项关联起来。
我假设:
- 我会选择一个工作项并声明我正在开始处理它,
- 对代码库进行我认为合适的更改,
- 每次检出文件时,它都会与当前的文件相关联工作项,
- 当我签入时,我可以声明我已停止处理该工作项。
然后,如果我查看一个工作项,我可以看到哪些变更集与该工作项相关联,从而获得对该特定工作项所做的更改的完全保真度。
这可能吗?是自动的吗?到目前为止,我发现的只是更改集与工作项的手动关联。
Warning - newbie question....
I had a vision that I could select what workitem I was working on, and when I checked in the code, I could associate the changeset with the workitem automatically.
I'm assuming that:
- I would select a work item and state that I'm starting to work on it,
- make my changes to the code base as I see fit,
- each time a file is checked out, it is associated with the current work item, and
- when I check in I can state that I've stopped working on that work item.
Then if I review a work item, I can see what changeset is associated with that workitem, getting the full fidelity of what changes were made for that specific work item.
Is this possible? Is it automatic? All that I have found so far is a manual association of a changeset with a work item.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
顺序是:进行更改、选择要签入的挂起更改、选择工作项目、签入。您可以启用强制更改与工作项关联的签入策略。
更新
对于 TFS2012/TFS2013 Premium 和 Ultimate,有一种更酷的方法,即使用“我的工作”页面。在开始编码之前,您可以从“可用工作项”到“进行中”选择一个工作项。从那里您可以通过单击“签入”直接跳转到“待更改”页面。还可以在保存 IDE 状态的情况下暂停您的工作。
演示:http://go.microsoft.com/fwlink/?LinkID=251849
The order is: make changes, choose pending changes to check-in, select work item, do check-in. You can enable a check-in policy that forces the change to associate with a work item.
Update
With TFS2012/TFS2013 Premium and Ultimate there is a much cooler way, using the "My Work" page. Before you start coding you select a work item from "Available Work Items" to "In Progress". From there you can directly jump to the "Pending Changes" page by clicking "Check In". It is also possible to suspend your work where the state of the IDE is saved.
Demo: http://go.microsoft.com/fwlink/?LinkID=251849
你所要求的并不是一个好主意。这几乎只允许您一次处理每个团队项目的一个工作项目。如果你能做到这一点,那么你一定过着平静的生活。
相反,TFS 允许您在创建变更集时将变更集与一个或多个工作项相关联。这样可以轻松准确地查看为了解决特定工作项而进行了哪些代码更改。
它还允许将自动化构建与工作项关联起来,并启用测试影响分析。如果您只是将工作项与您假设必须更改以解决该问题的代码相关联,我认为这些事情都没有意义。
What you're asking for is not a good idea. That pretty much only allows you to work on one work item per team project at a time. If you can do that, then you must be living a quiet life.
Instead, TFS allows you to associate a changeset with one or more work items - when you create the changeset. This makes it easy to see exactly which code changes were made in order to address a particular work item.
It also allows automated builds to be associated with work items, and enables Test Impact analysis. I don't think any of these things would make sense if you were simply associating a work item with the code you assumed you were going to have to change to address it.
实际上,在项目级别,您可以通过签入启用“需要工作项目”。这意味着首先定义工作项,以便在签入时您可以关联一些内容。
Actually at the project level you can enable "require work item" with checkin. This means that the work item be defined first so that you have somthing to associate with when a checkin takes place.