I recently noticed a question on our support alias that is … or at least should be … a common question for those using the tools. Thanks Bill Barnett, for supplying the answer to the question and for most of the content below.
Find the latest released bits here: Team Foundation Server Integration Tools (August 2010 Release) and the latest development bits here: http://tfsintegration.codeplex.com/.
Is there any way we compare the Source TFS Team Project and migrated TFS Team projects.
There are many ways of comparing the source against the target, however, the recommended options include the use of a tool or the use of a service, both of which are included in the TFS Integration Tools.
Tool –> ServerDiff
The command line ServerDiff.exe allows you to perform a comparison of either the Version Control (VC) or Work Item Tracking (WIT) items that were processed in a migration or synchronization session.
Type Type “serverdiff.exe /?” on the command line, in the TFS Integration Tools install directory,to see a list of the runtime parameters.
- Useful after completing a one-time migration, as it is possible to specify a VC or WIT session to use as the baseline for the comparison (diff).
- The ServerDiff command line utility outputs to the console output. We suggest that you redirect the output to a file, which will be easier to consume and analyze.
Service –> TFS Integration Service
Another option is to install and configure the “TFS Integration Service”, which is not installed by the default installation.
The “TFS Integration Service” option installs a service named “TFS Integration Job Service”, which you can configure to run either or both of the VC or WIT comparison (Diff) jobs nightly.
- The WIT diff comparison takes into account all work item type, field, and value mappings defined for the Work Item migration session when performing the diff so that Work Items are not reported as different simply because of an expected mapping.
- The Job Service processes all of the Active sessions found in the database, and ignores those sessions that have completed. That is the main reason that the ServerDiff utility is the recommended tool when doing a one-time migration, whereas the service is recommended when doing continuous synchronization.
- Unlike the ServerDiff tool, the service jobs store their results in the TFS_IntegrationPlatform database and tables SERVER_DIFF_RESULT and SERVER_DIFF_RESULT_DETAIL.
But where is the report?
We do not currently have a report that works on the ServerDiff results in the DB yet, but will be releasing one shortly. Keep an eye on this post for news on this elusive report 🙂
In the meantime you can run the following SQL Query:
… which gives you this result:
Use the right tool … loaned from our book “Software Engineers on their way to Pluto”.
- To configure the ServerDiff Jobs to run in the Job Service, you need to edit the file TfsIntegrationJobService.config and restart the “TFS Integration Job Service”. Both of these jobs are disabled by default as shown:
- The VC Server Diff operation (whether running from the command line or the job in the job service) performs the diff operation on the tip (the latest version) of all files found in the filter pairs for the migration session. This may introduce false warnings when data has changed on the one side, but not yet migrated to the other side.