Welcome to MSDN Blogs Sign in | Join | Help

How to: List changesets between two labeled versions?

You can achieve that behavior by running:

tf hist rootItemSpec /r /version:LstartLabel~LendLabel

Here’s my scenario:

tf hist /i File.cs

Changeset Change                     User          Date       Comment

--------- -------------------------- ------------- ---------- --------

65        edit                       mohamedg      4/2/2009

63        edit                       mohamedg      4/2/2009

60        edit                       mohamedg      4/2/2009

59        edit                       mohamedg      4/2/2009

50        edit                       mohamedg      4/1/2009

49        edit                       mohamedg      4/1/2009

48        edit                       mohamedg      3/31/2009

47        add                       mohamedg      3/31/2009

tf label Rev1 File.cs;48

Created label Rev1@$/Proj

tf label Rev2 File.cs;63

Created label Rev2@$/Proj

tf hist /i File.cs /version:LRev1~LRev2

Changeset Change                     User          Date       Comment

--------- -------------------------- ------------- ---------- --------------------------------

63        edit                       mohamedg      4/2/2009

60        edit                       mohamedg      4/2/2009

59        edit                       mohamedg      4/2/2009

50        edit                       mohamedg      4/1/2009

49        edit                       mohamedg      4/1/2009

Published Saturday, April 18, 2009 3:10 AM by mohamedg
Filed under: , ,

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# How to: List changesets between two labeled versions? | Coded Style

# re: How to: List changesets between two labeled versions?

Thanks so much for this post! This is EXACTLY what I was looking for to use in my project! The clearly stated example was really helpful.

Wednesday, May 13, 2009 1:02 PM by TN

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker