Item 1 of 61 Previous | Next

2
Vote

Adding change date from original element to comment

description

At the moment the modification date of the migrated work items and version control elements is set to the migration time (which makes absolute sense).

I think it'd be usefull to preserve the original date after migration, e.g. in the version comment field, because people often use the date information.
the new comment format could be (inspired by the vss converter tool):
{original date} original comment (Migrated by TFS Migration Toolkit)

comments

cmwoods wrote Dec 29 2009 at 6:47 PM

This is actually pretty easy to accomplish - I did this on my own in short amount of time.

The attached file is a modified version of ...\Microsoft Team Foundation Server Migration Tools\Source\Core\Toolkit\VC\SourceToTFSMigrationEngine.cs (***created by v1.1.31205.1 installer***) in which I changed the comment code to:

a) Inject a leading check-in timestamp from the original TFS server into the comment if one doesn't already exist. Projects migrated from VSS to TFS on our server already had a leading timestamp so there was no point to injecting a 2nd timestamp which would have been only been the when the project was first migrated.

b) Only add the trailing migration comment to the comment if it didn't already exist. As above, previously migrated projects already had this comment.

You'll have to rebuild the TFStoTFSMigrationTool solution, stop the "Team Foundation Server Migration Service" service, update all of the files in the ...\Microsoft Team Foundation Server Migration Tools\TFS to TFS Migration Tool, and then restart the migration service.

The timestamp format may or may not work for you depending on your location/culture settings and personal preferences - feel free to modify.

***I make no warranty nor offer any support on these changes.***

Again - the attached file is from the v1.1.31205.1 installation program. Diff the attached version against yours to see the changes. If you're using a previous version or the latest version from Source Code tab on CodePlex then there are likely other differences.