TFS 2008 – Source Control Annotation

This post will look into the Source Control Annotation feature in VSTS 2005 using TFS power tool or in VSTS 2008 using TFS 2008.

The annotation feature gives me the changeset information for each line of a source file. Hover over the changeset give me detail about the changeset as who did the check-in for that changeset and when was this checked-in.

You will find the same changeset numbers for different lines because the annotation presentation is based on the source file perspective. We see the changeset hence for each line of code.

It looks like:

Double clicking respective changeset give me all the files included in it via a file viewable wizard. We can see what the file was and also compare it with the latest ones or with a particular version file.

Main thing to observer here is that you will only see changeset corresponding to the last change for that file and not all the changeset’s i.e. Changeset history. You can always check the history by looking into the history option though.

I find this annotate useful in finding particular changeset details in case the code fails or any error comes even at the line level. If you are debugging a failure you would find it very useful and also your QA team would be happy in case they do some white box testing and find some bug. Bug can be exactly filed for person who actually caused that bug to surface.

I will be blogging on more aspects of TFS 2008 in near future.

bye for now.

visit my team @ http://global.rampgroup.com

Advertisements

2 Responses to TFS 2008 – Source Control Annotation

  1. Andy Marchewka says:

    Your screenshot shows line numbers in the annotation window, and you mention that, “the annotation presentation is based on the source file perspective”. Can the line number display be enabled just for annotation, or do you have to enable it for all source file windows?

    In a regular source file window, the line, column and char info are displayed in the status bar at the bottom. In the annotation window, this area is blank.

    I can hit, “Ctrl-G” for “Go to line” to display the current line number in the annotation editor, but that’s fairly clunky.

    Thanks

  2. shiham says:

    thnx for brief explanation.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Who am I what am I doing?

Who am I what am I doing?

%d bloggers like this: