DCSIMG
TFS Labels made easy with Labels Sidekick - Team Foundation Sidekicks

TFS Labels made easy with Labels Sidekick

The latest release of Team Foundation Sidekicks application includes brand new tool, Labels Sidekick. The current post explores functionality bundled in that tool and how it may help you in working with TFS labels.

Main screen of Sidekicks consists of two panes (in manner similar to other Sidekicks UI).

Left pane allows one to specify set of criteria and search labels according to the criteria specified. The labels are searchable by the following criteria:

  • Label name (name may include wildcards * and ?)
  • User name - name of the user who last modified the label
  • Project name - name of Team Project on which label was created
  • Change date range - change date is the date of the label on which label was last modified

Once the user specifies the criteria and hits Search, the list search panel will display found labels. For label selected in the list, right pane displays three tabs with extended label information.

First tab shows label properties and labeled items properties sortable list (with item path, type, changeset, and changeset date columns). It is possible to select item and either un-label it or compare labeled file version with latest file version

Second tab displays all changesets labeled. As TFS does to allow labeling changeset, but rather items versions (files or folders), the data displayed are union of all changesets of labeled items. For example, if you have labeled files foo.cs (changeset 943), bar.cs (changeset 944), dot.cs (changeset 945) and net.cs (changeset 944), list of changesets displayed will include changesets 943, 944 and 945.

In the similar fashion, the third tab displays all work items associated with changesets labeled (that is, if work item is associated with one or more changesets, it appears once in the list).

The data displayed for selected label is supposed to provide encompassing insight into label's contents, whether by version control items labeled, changesets or work items.

Additionally, Label Sidekick makes it relatively easy to compare two labels contents (again, in version control item, changeset or work item resolution).
Clicking "Compare selected with latest" tool button at the top of the labels list opens up the form that allows one to compare selected label items contents with latest version of items in repository. "Compare Labels" form has two panes and labeled items are displayed in left pane whereas latest version items are displayed in the right pane. The items that have different version, or version in only one pane are marked with different background color, while the folders are highlighted with different foreground color.

Thus it is easy to see what files have changed after being labeled; by right clicking the selected file it is possible to compare two versions. Also by clicking on "View Relative History" one may see the versions created between labeled and latest version.

If there are two labels selected in search labels list, "Compare two labels" tool button becomes enabled and it is possible to open "Compare Labels" form for selected labels. In that case the form will include two additional tabs, "Changesets" and "Work Items", that contain changesets and work items of two compared labels and thus user may compare more than only labeled files.

There may be numerous additional scenarios of labels usage in TFS; the label is lightweight and very versatile tool for identifying code in repository and there's been lots of creative labels usage recipes. If you feel that your scenario deserves to be known and handled by Sidekick, please let us know.

Published Friday, January 05, 2007 7:25 AM by Eugene Zakhareyev
תגים:,

Comments

# re: TFS Labels made easy with Labels Sidekick

When clicking on the name of a label in the list, the entire app seems to freeze up on me. Any ideas why?

Wednesday, March 07, 2007 12:35 PM by Ryan Adler

# re: TFS Labels made easy with Labels Sidekick

On second thought, it just looks like any operations having to do with Labels can take a really long time. Basically about 1 minute per click on anything.

Wednesday, March 07, 2007 12:38 PM by Ryan Adler

# re: TFS Labels made easy with Labels Sidekick

Ryan,

I believe that may be connected to number of labeled items you have in particular label. Do you see the same behavior when label has lets say three files in it?

If you want to follow it up with particulars, drop us a line at tfs_at_attrice_dot_info.

Thanks.

Thursday, March 08, 2007 8:57 PM by Eugene Zakhareyev

# re: TFS Labels made easy with Labels Sidekick

When I compare a Label against the lasted code the Changesets for the Latest are all marked as None. The only time I see Changesets is when I compare Label against Label. Am I doing something wrong. I was hoping to select the last label and compare against the latest to see what files had been changed. Also - is there a way to get a report or file listing of all the files that have changed since a label?

Friday, May 11, 2007 11:17 PM by Dave

# re: TFS Labels made easy with Labels Sidekick

Dave,

It appears that you have uncovered a bug introduced in the latest version. We shall fix that within couple of weeks at most.

As far as report of changes since label is concerned - what would be the preferred way of viewing that information in your opinion?

Thanks a lot for your time.

Monday, May 14, 2007 10:35 AM by Eugene Zakhareyev

# re: TFS Labels made easy with Labels Sidekick

Good to hear. Any simple Text file dump would suffice. Just looking for a list of the files (not content) that had changed either between labels, or between a label and the latest. In particular I don't want to see those files that are identical. This would be helpful during our releases.

Tuesday, May 15, 2007 1:59 AM by Dave

# re: TFS Labels made easy with Labels Sidekick

Yes, I also would like to be able to export a .csv (comma separated values) text file of files that are different between labels. It would be helpful to see the following details for each file: Item (TFS path) Check-in Date Changeset ID Changeset Owner Changeset Comment Also, it would be helpful to be able to sort the datagrid by clicking on the column headers, then export the .csv file in the same sort order in which the data grid is being viewed.

Wednesday, May 30, 2007 8:43 PM by ATLANTES

# re: TFS Labels made easy with Labels Sidekick

Atlantes,

Thanks for the suggestion. We shall certainly add the CSV export functionality to the next release.

Thursday, May 31, 2007 10:03 AM by Eugene Zakhareyev

# re: TFS Labels made easy with Labels Sidekick

Is there a known issue with sorting via Checkin Date?  We can see instances where clicking on the checkin date field will not sort the values properly.  It appears a correct work-around to click on the Changeset field instead.  Or are we misunderstanding something?  Thanks in advance.

Tuesday, October 30, 2007 1:58 AM by Kevin Hibray

# re: TFS Labels made easy with Labels Sidekick

Kevin,

Thanks for your comment. We are not aware of any issues with sorting by date, but it will be tested againg before next release.

Monday, November 12, 2007 5:29 AM by Eugene Zakhareyev

Leave a Comment

(required) 
(required) 
(optional)
(required) 

Enter the numbers above: