TFS 历史丢失

发布于 2025-01-03 13:52:35 字数 732 浏览 0 评论 0原文

我遇到了一个问题,看起来 TFS 已永久删除了一个分支及其所有历史记录,并且无法让我与该分支中的任何变更集进行交互。发生的事情是这样的:

  1. 我在现有分支 (B) 的基础上创建了一个新分支 (A)。
  2. 我用A几个月了。
  3. 我将 A 中的所有内容合并回 B。
  4. 我通过右键单击源代码管理资源管理器中的分支并单击删除并签入更改来删除 A。
  5. [此时我没有检查 A 是否可以被删除,也没有发现任何异常]
  6. 2 周过去了
  7. 现在我想查看合并的文件的历史记录
  8. 我进入 Visual Studio 设置并检查显示所有已删除项目 A 的框
  9. 找不到,
  10. 我检查过去删除的其他一些分支是否可见,并且它们仍然存在。
  11. 我查看父目录的更改历史记录,甚至看不到删除 A 时的更改集。

    • 我拥有 TFS 数据库的管理员访问权限,但不太了解架构,无法搜索所有“删除”变更集。
    • 我尝试使用 Microsoft.TeamFoundation.Client 中的 API 来获取更多信息,但它没有提供 TFS 历史记录窗口提供的更多记录

更新

所做的更多记录,我刚刚运行了 aa tf destroy 命令一个测试分支来看看症状是什么,症状与我遇到的情况一致。我怀疑这个分支被摧毁了,现在我的目标是查明摧毁是否留下了任何关于谁或何时的信息

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

小镇女孩 2025-01-10 13:52:35

进一步调查显示,另一个项目的一名团队成员在两周内运行了一个清理脚本,该脚本调用了 destroy 命令,意外地破坏了我们已删除的一些分支。 如何找出谁TFS 摧毁司令部负责人? 透露了它是谁,以及它是如何发生的。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文