6

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:

  1. I created a new branch(A) off of an existing branch(B).
  2. I used A for a few months.
  3. I merged everything in A back to B.
  4. I deleted A by right clicking on the branch in Source Control Explorer and clicking delete and checked in the change.
  5. [At this point I didn't check to see if A could be undeleted, and didn't notice anything amiss]
  6. 2 weeks pass
  7. Now I want to view the history of a file that was merged
  8. I go to the visual studio settings and check the box that shows all deleted items
  9. A is nowhere to be found
  10. I check to see if some other branches that I had deleted in the past were visible, and they are still present.
  11. 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

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Vic Peters
  • 338
  • 3
  • 16

1 Answers1

1

Further investigation reveals that a team member on a different project had run a cleanup script during the two week period that had invoked the destroy command, accidentally destroying some of our deleted branches. The advice in How to find out who ran the TFS Destroy Command? revealed who it was, and how it had happened.

Community
  • 1
  • 1
Vic Peters
  • 338
  • 3
  • 16