TFS - 将文件夹添加到标签而不包括已删除的项目

TFS - add folder to label without including deleted items

当我使用 TFS for Eclipse 将文件夹添加到标签时,它还包括任何已删除项目在被删除之前的最新版本。它在末尾显示一个 ;Xvvv,表明它不是当前存在的版本。

是否可以告诉它不要这样做 - 即在将文件夹添加到标签时忽略所有已删除的项目?

这是设计使然。 标签 只是让您拍摄文件的快照,以便日后您可以参考该快照。

The decision to add deleted items to labels was intentional, and helps with many scenarios where a Get operation is performed to return to the state of the repository at the point in time which the items were labeled. The use of merge with labels is also greatly improved with deleted items in labels. One option that we can add here is to improve how these labels are shown to users, and provide the option to hide the deleted items from view. This is now a feature that we are tracking on our product backlog.

Thanks, Matt /Microsoft

来源Link:Labels contain deleted files