.net 将更新签入 TFS 后编辑变更集注释
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/17245541/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Edit changeset comment after updates have been checked in to TFS
提问by Raheel Khan
I have just switched to VS2012 and being unfamiliar with it, checked in some major changes without a comment. No other updates have been done since then and no other developers will have access to the code for another few hours.
我刚刚切换到 VS2012 并且不熟悉它,检查了一些重大变化而没有评论。从那时起没有进行其他更新,并且在接下来的几个小时内,其他开发人员将无法访问该代码。
Is there a way to add a comment to this changeset now thaht it has been checked in?
现在有没有办法向这个变更集添加评论,它已经被签入?
回答by slugster
One relatively simple way to do this is:
一种相对简单的方法是:
- find an appropriate point in your source tree in the Source Explorer window, maybe the root of the branch but you can also drill down a bit
- ...or, if you know a specific file that was included in the changeset then find it and select it (can be done from the Solution Explorer panel)
- right click, select View History(Source Explorer) or Source Control -> View History(Solution Explorer)
- 在 Source Explorer 窗口中的源树中找到合适的点,可能是分支的根,但您也可以向下钻取一点
- ...或者,如果您知道变更集中包含的特定文件,则找到它并选择它(可以从解决方案资源管理器面板完成)
- 右键单击,选择查看历史记录(源代码管理器)或源代码管理 -> 查看历史记录(解决方案资源管理器)
- find the specific change you are interested in, then right click, select Changeset details
- 找到您感兴趣的特定更改,然后右键单击,选择更改集详细信息
- edit the comment, hit the Savelink above the comment textbox
- 编辑评论,点击评论文本框上方的保存链接
- refresh the history view to see the updated comment
- 刷新历史视图以查看更新的评论
To do this via the web interface:
要通过 Web 界面执行此操作:
- navigate your browser to your TFS web portal (if you are using TFS Online then it will be [your account name].visualstudio.com)
- from you Home portal navigate to your project (if it isn't available under Recent projects and teamsthen click the Browselink under that heading)
- click the CODE link at the top of the page
- you should be in the Explorertab under your project, in the tree view navigate and select the specific branch you are interested in
- click the Changesetslink at the top of the page to bring up the changesets for that branch. Use the Advanced Searchtowards the top right of that panel if you need to.
- Click on the Changeset [number]link for the changset you are interested in
- Above the changeset details panel click on the little speech bubble with the plus sign, a textbox will appear and you can enter your comment - hitting Enterwill save the comment.
- 将您的浏览器导航到您的 TFS 门户网站(如果您使用的是 TFS Online,那么它将是[您的帐户名].visualstudio.com)
- 从您的主页门户导航到您的项目(如果它在最近的项目和团队下不可用,则单击该标题下的浏览链接)
- 单击页面顶部的 CODE 链接
- 您应该在项目下的Explorer选项卡中,在树视图中导航并选择您感兴趣的特定分支
- 单击页面顶部的Changesets链接以显示该分支的变更集。如果需要,请使用该面板右上角的高级搜索。
- 单击您感兴趣的变更集的变更集 [编号]链接
- 在变更集详细信息面板上方单击带有加号的小气泡,将出现一个文本框,您可以输入您的评论 -按 Enter将保存评论。
Note that it is possible to create a series of comments via this method, which is not possible via the desktop UI. Also note that the web entered comments will only show up in the web interface, any comment you add via the desktop UI will replace the default Changeset [number]link that shows up in the web interface.
请注意,可以通过此方法创建一系列评论,这是通过桌面 UI 无法实现的。另请注意,网络输入的评论只会显示在网络界面中,您通过桌面 UI 添加的任何评论都将替换网络界面中显示的默认变更集 [编号]链接。


