How to force Team Foundation Server SDK / API check-in to a given date?
I would like to force the date of the check-in in TFS. Is there any way?
I got the following code, but could not find any way to pass a check-in date:
Dim tfsChangeSet = tfsVersionControl.Workspace.CheckIn(tfsPendingChanges,
user,
开发者_JS百科 tfsComment,
tfsNote,
Nothing,
Nothing)
This is not possible. Checkin Date is determined by the server. Best you can do is dynamically adjust the clock on the server machine, but that's highly unsupported. If you change it in such a way that TFS's internal assumptions are no longer valid, you might render the database unusable.
精彩评论