TFS source code explorer: browse specific revision

这一生的挚爱 提交于 2019-12-24 12:30:14

问题


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.

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.


回答1:


Update

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

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

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:

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


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

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.

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

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



来源:https://stackoverflow.com/questions/45942821/tfs-source-code-explorer-browse-specific-revision

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!