Version History  
Author Message
MaggieChan





PostPosted: Team Foundation Server - Version Control, Version History Top

Coming from a VSS background, I am used to seeing version numbers and labels in the history of any item. In Team Foundation, the history only show the Changeset number and the comments.

Is there a way I can find out what labels are applied to a version of an item Is there a way to see the version number

How does one compare two previous versions of an item where neither version is the latest



Visual Studio Team System21  
 
 
Richard Berg MSFT





PostPosted: Team Foundation Server - Version Control, Version History Top

We do not have an easy way to search for labels associated with a given item. Try History Sidekick.

We do not track version numbers at all.

To compare two previous versions: rightclick a file -> History. Select two rows in the History pane, rightclick -> Compare.

 
 
Buck Hodges





PostPosted: Team Foundation Server - Version Control, Version History Top

Regarding labels, the main reason you won't find them in the history view in v1 is because TFS labels are not points in time (see http://blogs.msdn.com/buckh/archive/2006/08/28/diff_between_labels.aspx for more info). Having said that, we are discussing how we can better integrate this information in a future release, such as showing label information when you view the history of a single file.

Here's a sample app showing how to get the labels on an item: http://blogs.msdn.com/buckh/archive/2005/10/25/484854.aspx. The one thing it doesn't do is show the version of the file that's in the label. You could enable that by changing the false to true in the following statement.

labels = sourceControl.QueryLabels(null, scope, null, false,
path, VersionSpec.Latest);
The label object would then have all of the files and versions involved.

Buck



 
 
MaggieChan





PostPosted: Team Foundation Server - Version Control, Version History Top

Thanks for the info, the developers are used to using VSS history and compare two different versions based on the labels on them. Can this be done in TF then - if I want to compare two different versions from say, from two previous labeled builds
 
 
Buck Hodges





PostPosted: Team Foundation Server - Version Control, Version History Top

The new TreeDiff power toy may give you what you need.

http://blogs.msdn.com/bharry/archive/2006/09/07/744993.aspx

Buck