{"id":4163,"date":"2006-03-13T17:47:00","date_gmt":"2006-03-13T17:47:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/buckh\/2006\/03\/13\/annotate-also-known-as-blame-is-now-a-power-toy\/"},"modified":"2006-03-13T17:47:00","modified_gmt":"2006-03-13T17:47:00","slug":"annotate-also-known-as-blame-is-now-a-power-toy","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/buckh\/annotate-also-known-as-blame-is-now-a-power-toy\/","title":{"rendered":"Annotate (also known as blame) is now a power toy"},"content":{"rendered":"<p><strong>[UPDATE 8\/9\/2007]<\/strong>&nbsp; I fixed the broken link to power tools page.&nbsp;<\/p>\n<p><strong>[UPDATE 9\/8\/2006]<\/strong>&nbsp; TFPT is now available in its own&nbsp;small download: <a href=\"http:\/\/go.microsoft.com\/?linkid=5422499\">http:\/\/go.microsoft.com\/?linkid=5422499<\/a>!&nbsp; You no longer need to download the VS SDK.&nbsp; You can find more information about the September &#8217;06 release&nbsp;<a href=\"http:\/\/blogs.msdn.com\/buckh\/archive\/2006\/09\/07\/tfs_power_toys_tfpt.aspx\">here<\/a>.<\/p>\n<p>One of the features that we had to cut for version 1 was annotate, which is also known as blame in Subversion.&nbsp; We had hoped to provide a power toy that at least provided the basics, and the <a href=\"http:\/\/msdn.microsoft.com\/vstudio\/extend\/\">Visual Studio 2005 SDK &ndash; March 2006 CTP for v2<\/a> contains an updated&nbsp;tfpt.exe with support for annotate.<\/p>\n<p>Written by Justin, a developer working primarily on the version control server, annotate downloads every version of a particular file and annotates the output with attributes showing the changeset, date, and user who last changed each line in the file.&nbsp; The current&nbsp;implementation does not show deleted lines.<\/p>\n<p>Most of the time, you will likely run <font face=\"Courier New\">tfpt annotate <em>filename<\/em><\/font> to bring up the viewer, but you can also specify <font face=\"Courier New\">\/noprompt<\/font> to get console output.&nbsp; The optional version provides the ability to see changes up to the specified version.&nbsp; Here is the help text.<\/p>\n<blockquote>\n<p><font face=\"Courier New\">C:Program FilesVisual Studio 2005 SDK2006.03VisualStudioTeamSystemIntegrationUtilitiesTeam Foundation Power Toys&gt;tfpt annotate \/?<br>tfpt annotate &#8211; Display line-by-line change information for a file<\/font><\/p>\n<p><font face=\"Courier New\">Displays the given version of a file along with information<br>on who modified the line last.<\/font><\/p>\n<p><font face=\"Courier New\">Usage: tfpt annotate [\/noprompt] filespec[;versionspec]<\/font><\/p>\n<p dir=\"ltr\"><font face=\"Courier New\">&nbsp;filespec&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Server or local path of file to view history of.<br>&nbsp;\/noprompt&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Prints interleaved output to console instead of GUI.<\/font><\/p>\n<\/blockquote>\n<p dir=\"ltr\">The annotate viewer is shown in a screenshot below.&nbsp; By default, the content viewer displays only the changeset number.&nbsp; You can use the View menu to&nbsp;display the user name and date, as I&nbsp;have.<\/p>\n<p dir=\"ltr\">When this screenshot was captured, I had selected the line that prints the output.&nbsp; As a result, the changeset information on the left hand side shows some of the changeset information, including the comment.&nbsp; If I had associated or resolved a work item when checking in, that work item would be displayed in the Work Items list.<\/p>\n<p dir=\"ltr\">Finally, the Edit menu gives you the ability to search and go to a particular line number.<\/p>\n<p dir=\"ltr\"><img decoding=\"async\" src=\"http:\/\/ewhodges.members.winisp.net\/images\/annotate.png\"><\/p>\n<p dir=\"ltr\">This annotate implementation provides the basics, and it will likely whet your appetite for more.&nbsp; While this power toy is not likely to get more features, we are certainly interested in your feedback for what you would like to see in the shipping product.<\/p>\n<p dir=\"ltr\">Enjoy!<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>[UPDATE 8\/9\/2007]&nbsp; I fixed the broken link to power tools page.&nbsp; [UPDATE 9\/8\/2006]&nbsp; TFPT is now available in its own&nbsp;small download: http:\/\/go.microsoft.com\/?linkid=5422499!&nbsp; You no longer need to download the VS SDK.&nbsp; You can find more information about the September &#8217;06 release&nbsp;here. One of the features that we had to cut for version 1 was annotate, [&hellip;]<\/p>\n","protected":false},"author":94,"featured_media":10268,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[6,8],"class_list":["post-4163","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-source-control","tag-team-foundation"],"acf":[],"blog_post_summary":"<p>[UPDATE 8\/9\/2007]&nbsp; I fixed the broken link to power tools page.&nbsp; [UPDATE 9\/8\/2006]&nbsp; TFPT is now available in its own&nbsp;small download: http:\/\/go.microsoft.com\/?linkid=5422499!&nbsp; You no longer need to download the VS SDK.&nbsp; You can find more information about the September &#8217;06 release&nbsp;here. One of the features that we had to cut for version 1 was annotate, [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts\/4163","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/users\/94"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/comments?post=4163"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts\/4163\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/media\/10268"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/media?parent=4163"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/categories?post=4163"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/tags?post=4163"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}