Welcome to MSDN Blogs Sign in | Join | Help

How to: View history of an item across branches?

You can use tfpt history /followbranches to follow the history of an item across branches. We are looking into supporting this in the history dialog in the next version.

You can see which versions are ported over during the merge operation if you use tf.exe:

tf merge BranchA BranchB /r

merge: $/mohamedg/blog/BranchA/File.cs;C663~C664 -> $/mohamedg/blog/BranchB/File.cs;C665

After the merge is done, you can look up the merge history to know what changesets were ported over, for example:

tf merges BranchA BranchB /r

Changeset Merged in Changeset Author                           Date

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

     654                  655 mohamedg                         4/10/2009

     656                  657 mohamedg                         4/10/2009

     658                  661 mohamedg                         4/10/2009

     659                  661 mohamedg                         4/10/2009

     660                  661 mohamedg                         4/10/2009

     662                  665 mohamedg                         4/10/2009

     663                  665 mohamedg                         4/10/2009

tf merges BranchA BranchB /r /format:detailed /showall

Merged items:

$/mohamedg/blog/BranchA;C654 -> $/mohamedg/blog/BranchB;C655

$/mohamedg/blog/BranchA/File.cs;C654 -> $/mohamedg/blog/BranchB/File.cs;C655

$/mohamedg/blog/BranchA/File.cs;C656 -> $/mohamedg/blog/BranchB/File.cs;C657

$/mohamedg/blog/BranchA/File.cs;C658~660 -> $/mohamedg/blog/BranchB/File.cs;C661

$/mohamedg/blog/BranchA/File.cs;C662~663 -> $/mohamedg/blog/BranchB/File.cs;C665

Published Saturday, April 18, 2009 3:01 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: View history of an item across branches? | Coded Style

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker