将更新签入到 TFS 后编辑变更集注释 [英] Edit changeset comment after updates have been checked in to TFS

查看:25
本文介绍了将更新签入到 TFS 后编辑变更集注释的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚切换到 VS2012 并且不熟悉它,检查了一些重大更改而没有评论.从那时起没有进行其他更新,其他开发人员将在接下来的几个小时内无法访问该代码.

现在有没有办法向这个变更集添加评论,它已经被签入?

解决方案

一种相对简单的方法是:

  • 在 Source Explorer 窗口中的源代码树中找到合适的点,可能是分支的根,但您也可以向下钻取一点
  • ...或者,如果您知道变更集中包含的特定文件,则找到它并选择它(可以从解决方案资源管理器"面板中完成)
  • 右键单击,选择查看历史(源代码管理器)或源代码管理 -> 查看历史(解决方案资源管理器)

  • 找到您感兴趣的特定更改,然后右键单击,选择Changeset details

  • 编辑评论,点击评论文本框上方的保存链接

  • 刷新历史视图以查看更新的评论

要通过 Web 界面执行此操作:

  • 将您的浏览器导航到您的 TFS 门户网站(如果您使用的是 TFS Online,那么它将是[您的帐户名].visualstudio.com)
  • 从您的主页门户导航到您的项目(如果它在最近的项目和团队下不可用,则单击该标题下的浏览链接)
  • 点击页面顶部的代码链接
  • 您应该在项目下的 Explorer 选项卡中,在树视图中导航并选择您感兴趣的特定分支
  • 单击页面顶部的变更集链接以显示该分支的变更集.如果需要,请使用该面板右上角的高级搜索.
  • 点击您感兴趣的变更集的变更集[编号]链接
  • 在变更集详细信息面板上方单击带有加号的小气泡,将出现一个文本框,您可以输入您的评论 - 按 Enter 将保存评论.

请注意,通过此方法可以创建一系列评论,而通过桌面 UI 则无法创建.另请注意,网络输入的评论只会显示在网络界面中,您通过桌面 UI 添加的任何评论都将替换网络界面中显示的默认Changeset [编号]链接.>

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.

Is there a way to add a comment to this changeset now thaht it has been checked in?

解决方案

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)

  • find the specific change you are interested in, then right click, select Changeset details

  • edit the comment, hit the Save link above the comment textbox

  • refresh the history view to see the updated comment

To do this via the web interface:

  • 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 teams then click the Browse link under that heading)
  • click the CODE link at the top of the page
  • you should be in the Explorer tab under your project, in the tree view navigate and select the specific branch you are interested in
  • click the Changesets link at the top of the page to bring up the changesets for that branch. Use the Advanced Search towards 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 Enter will save the comment.

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.

这篇关于将更新签入到 TFS 后编辑变更集注释的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆