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
Comments
- Anonymous
April 17, 2009
PingBack from http://www.codedstyle.com/how-to-view-history-of-an-item-across-branches/