TFS 源代码浏览器:浏览特定版本 [英] TFS source code explorer: browse specific revision

查看:45
本文介绍了TFS 源代码浏览器:浏览特定版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 SVN 中,可以使用存储库浏览器"来浏览主干的旧版本.这样您就可以在主干中看到属于此版本和以前版本的所有文件夹和文件.

In SVN it is possible to use the 'repository browser' to browse an older revision of the trunk. That way you can see all folders and files belonging to this and previous revisions in the trunk.

当文件夹和文件被移动时,这会很方便地找到它们,而不仅仅是特定的变更集.

When folders and files have been moved this would be convenient to find them, not only a specific changeset.

在 TFS 源代码浏览器中是否有类似的方法来执行此操作?好像只能在浏览器中看到最新版本.

Is there a similar method to do this in the TFS source code explorer? It seems I can only see the latest revision in the browser.

推荐答案

更新

如果你想浏览一个特定的修订版而没有得到它.就像在线预览:

If you want to browse a specific revision without getting it. Like an online preview:

您进入 Web 门户并选择代码.然后选择变更集,在变更集详细信息中,有一个选项--浏览文件

You go into the web portal and select Code. Then select the changeset, in changeset details, there is an option-- Browse files

点击它后,您可以打开源代码管理资源管理器来浏览此版本的存储库.例如,我选择了 changeset69 并将在 repo 中显示如下文件:

After click it, you could open source control explorer to browser the repository as of this version. For example I have selected changeset69 and will show files in the repo as below:

顺便说一下,我使用的是最新的 TFS2017update2 版本,这个功能目前似乎只在这个版本中可用.

By the way, I'm using the latest TFS2017update2 version, this feature seems only available with this version for now.

要在 VS 中浏览 TFS 的版本控制文件夹,请选择 Menu ViewOther Windows,然后选择 Source Control Explorer.

To browse the version control folders of TFS in VS, select Menu View, Other Windows and then Source Control Explorer.

要使用源代码管理资源管理器包含已删除的文件夹和文件以进行版本控制,请选择工具源代码管理,并确保在源代码管理资源管理器中显示已删除的项目 复选框在 Visual Studio Team Foundation Server 节点下被选中.您还可以轻松跟踪 TFS 中已删除文件的历史记录/变更集,只需右键单击并选择查看历史.

To include deleted folders and files for version control using Source Control Explorer, select Tools, Source Control, and ensure the Show deleted items in Source Control Explorer checkbox is selected under the Visual Studio Team Foundation Server node. You could also easily track the history/changeset for deleted files in TFS, just right click and select view history.

根据您的描述,您似乎想获取分支/主干中的所有文件夹和文件以进行较旧的修订.在 TFS 中,您可以获取特定版本而不是获取分支的最新版本.详情请参考这个问题:TFS 获取特定版本到单独的文件夹

According to your description, seems you want to get all folders and files in the branch/trunk for an older revision. In TFS, you could Get Specific Version instead of get latest version of the branch. Details please refer this question: TFS Get Specific Version into separate folder

如何在 VS 中执行此操作:右键单击分支-高级-获取特定版本

How to do this in VS: right click the branch-Advance-Get Specific Version

这篇关于TFS 源代码浏览器:浏览特定版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆