I have come across an issue that looks like TFS has permanently deleted a branch and all of its history and is not giving me the ability to interact with any of the changesets that were in that branch. Here is what happened:
- I created a new branch(A) off of an existing branch(B).
- I used A for a few months.
- I merged everything in A back to B.
- I deleted A by right clicking on the branch in Source Control Explorer and clicking delete and checked in the change.
- [At this point I didn't check to see if A could be undeleted, and didn't notice anything amiss]
- 2 weeks pass
- Now I want to view the history of a file that was merged
- I go to the visual studio settings and check the box that shows all deleted items
- A is nowhere to be found
- I check to see if some other branches that I had deleted in the past were visible, and they are still present.
I look in the change history of the parent directory and I can't even see the changeset from when I deleted A.
- I have admin access to the TFS database, but don't understand the schema well enough to search for all "delete" changesets.
- I've tried to use the API in Microsoft.TeamFoundation.Client to get more information, but it isn't providing any more records that the TFS history window did
Update
I just ran a a tf destroy command on a test branch to see what the symptoms are, and the symptoms are consistent with what I'm experiencing. I suspect that this branch was destroyed, now my goal is to find out if destroy leaves behind any information about who or when