com.microsoft.tfs.core.clients.versioncontrol
Class BranchHistoryUtil

java.lang.Object
  extended by com.microsoft.tfs.core.clients.versioncontrol.BranchHistoryUtil

public class BranchHistoryUtil
extends java.lang.Object

Internal utilities to manage branch history items. Not public API.


Constructor Summary
BranchHistoryUtil()
           
 
Method Summary
static void updateServerItems(Workspace workspace, VersionSpec versionSpec, BranchHistory branchHistory)
          Updates the given BranchHistory object to include the latest Items from the server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BranchHistoryUtil

public BranchHistoryUtil()
Method Detail

updateServerItems

public static void updateServerItems(Workspace workspace,
                                     VersionSpec versionSpec,
                                     BranchHistory branchHistory)
Updates the given BranchHistory object to include the latest Items from the server. (By default, the BranchHistory will only include sparse items that do not have full details. NOTE: this method does NOT rebalance renames or deletions in the history tree.

Parameters:
workspace - A Workspace to query from (not null)
versionSpec - The VersionSpec to query items at (not null)
branchHistory - The BranchHistory obtained by a server call, with sparse from and to Items.


© 2015 Microsoft. All rights reserved.