I'm using the TFS Power Toys with PowerShell to get the history of a file. Like so:
$fileName = "$/MyDir/MyFile.cs"
$results = @(Get-TfsItemHistory $fileName )
I get a nice result set that has many ChangesetId's. However, when I run tf diff (tf diff /version:C36826~C36680 "$/MyDir/MyFile.cs" /format:unified
) for some of the ChangesetIds I get:
Item $/MyDir/MyFile.cs;C37400 was not found in source control.
However I can use the compare tool from Visual Studio to compare those two versions of the file. Am I doing something wrong? It doesn't seem to have anything to do with the age of the file, there's instances where the command line diff will show a changeset but not a changeset that happened earlier in the day. When I view those changesets with the gui tool they have many lines that have changed, the changeset isn't empty.
What's up with this thing? Should I submit a bug report? This looks like a bug to me.
Maybe this has something to do with it: the last diff that works gives me "\ No newline at end of file".