1
votes

I would like to set the option File Time = Checkin on workspaces that are created with the tf.exe workspace command. In the Visual Studio 2013 Workspaces editor there is a field for this setting in the Advanced section and it defaults to Current Time.

The build server is creating workspaces with tf.exe and getting the code which then timestamps all the files to current time but I would like them to be time stamped with the last checkin time.

Is it possible to set this option on the command line so I that can include it in my build process?

BTW: If I get the timestamps to match last checkin I can speed up the copy process when deploying my websites by only copying the newer files. Currently it just copies everything even it is has not changed because the timestamps change on every build.

1

1 Answers

2
votes

You can configure the file time setting with the filetime option. For example:

tf workspace MYWORKSPACE /filetime:checkin