TFS Changeset history using QueryHistory after branch rename

Posted by bryantb on Stack Overflow See other posts from Stack Overflow or by bryantb
Published on 2009-10-07T13:12:52Z Indexed on 2010/05/23 6:10 UTC
Read the original article Hit count: 1320

Filed under:

I'm using the VersionControlServer.QueryHistory method to retrieve a list of files that have changed during a timespan that ranges from 5/1/2009 to 10/1/2009. My results unexpectedly only included items that had changed after 9/1/2009. I then realized that the path that I was using, $/Project/Reports/Main, didn't exist until 9/1/2009. Before 9/1/2009, there had been another node named $/Project/Main/Reports, which was renamed to $/Project/Reports/Main.

When I query from Source Control Explorer I can see the entire history (5/1/2009 - 10/1/2009) that I expect to see. However, I can't get the same results via the API. I've tried to specify the branch that no longer exists because it was renamed, but not surprisingly I get zero results. Any ideas?

© Stack Overflow or respective owner

Related posts about tfs