private void MergeResults(VaultClientHelper client, VaultHistoryDataSet destination, VaultHistoryItem [] history, string featureTag) { if (history == null) { return; } foreach (VaultHistoryItem item in history) { if (HistoryQueryHelper.IsChangeRelatedToTask(item.Comment, featureTag)) { destination.Add(client, item); } } }
public ChangeHistoryDataSet GetVersions(string featureBranch, VaultRepositoryAuthSettings connectionSettings) { using (VaultClientHelper client = new VaultClientHelper(connectionSettings)) { VaultHistoryDataSet results = new VaultHistoryDataSet(featureBranch); foreach (VaultTxHistoryItem changeSet in GetChangeSets(client, featureBranch)) { foreach (VaultHistoryItemBase change in GetChanges(client, changeSet)) { if (change != null) { // Don't query promotion info because it's done via branches, not labels. results.Add(client, change); } } } return(results); } }