When I view the history of a file in Visual Studio, I see this:
I try to retrieve these changes through the API:
var queryParams = new QueryHistoryParameters("$/Project/folder/folder/file.cs", RecursionType.None)
{
ItemVersion = VersionSpec.Latest,
DeletionId = 0,
Author = null,
VersionStart = null,
VersionEnd = null,
MaxResults = Int32.MaxValue,
IncludeChanges = true,
SlotMode = false
};
foreach (var h in server.QueryHistory(queryParams))
{
Console.WriteLine(h.ChangesetId);
}
But in the output I only get the top level changesets where the file is in the current location, not the ones it was moved or branched from:
576909
552480
550006
I've searched all over and everything I read makes it look like I'm calling the right thing but it just isn't working.