private ChangeHistoryDataSet CreateHistoryDataSet( List<Changeset> changesets )
 {
     ChangeHistoryDataSet versions = new ChangeHistoryDataSet();
     foreach( Changeset changeset in changesets )
     {
         Merge( versions, changeset );
     }
     return versions;
 }
 private void Merge( ChangeHistoryDataSet versions, Changeset changeset )
 {
     foreach( Change change in changeset.Changes )
     {
         if( change.Item.ItemType == ItemType.File )
         {
             versions.Add( change.Item.ItemId,
                 change.Item.ServerItem,
                 changeset.ChangesetId,
                 clientHelper.LatestVersion,
                 changeset.CreationDate,
                 changeset.Committer,
                 BuildComment( changeset, change ) );
         }
     }
 }
 public ChangeHistoryDataSet GetHistory( string[] taskTags )
 {
     ChangeHistoryDataSet history = new ChangeHistoryDataSet();
     foreach( Change change in GetChanges() )
     {
         if( HistoryQueryHelper.IsChangeRelatedToTask( change.Comment, taskTags ) )
         {
             System.Diagnostics.Trace.WriteLine( change.Version.ToString() + " - " + change.ElementId );
             history.Add(
                 change.ElementId,
                 change.RepositoryPath,
                 change.Version,
                 -1,
                 change.Date,
                 change.User,
                 change.Comment );
         }
     }
     return history;
 }