Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Edit changeset comment after updates have been checked in to TFS

People also ask

How do you add comments in TFS?

You have the capability to comment on specific files, in addition to the entire changeset. To comment on a specific file, first select it. Then, within the file, move your mouse over the line on which you want to comment.

How do you delete a changeset in TFS?

You cannot delete a changeset in TFS. Even if you could somehow, (I think you can run a sql query against the TFS database to do that) its not a good practice. If people start deleting changesets/history the whole purpose of version control will be defeated.


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)

enter image description here

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

enter image description here

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

enter image description here

  • refresh the history view to see the updated comment

enter image description here

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.