I'm trying to implement a plugin for Team Foundation Server 2010 that will create reports about users in a team project. Conceptually, all I need in order to properly implement this plugin is access to the same data that you get when you use the "Annotate" feature in Visual Studio: I need to be able to tell who was the last person to author a given line of code.
I've scoured the Internet for documentation or code samples, but all that I can find are either suggestions such as using the TFS command-line tools or seemingly incomplete code samples.
I don't mind doing a lot of heavy lifting in the client code, but there doesn't seem to be an obvious way to get useful authorship data about the contents of the code in a Changeset, nor from the merge details return.