TFS 中是否有“获取最新版本"预览?(如 VSS 'Get' 命令) [英] Is there a 'Get Latest Version' preview in TFS? (Like VSS 'Get' command)

查看:36
本文介绍了TFS 中是否有“获取最新版本"预览?(如 VSS 'Get' 命令)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题与 Team Foundation Server (TFS) 有关,具体而言,在执行获取最新版本(递归)"之前,有没有办法知道服务器上的哪些文件已更改?

在 Visual Source Safe (VSS) 中,您可以执行获取"(我认为),它会向您显示正在考虑进行更新的所有文件以及我们在服务器上更改的文件(因此将是在获取期间更新).这个功能似乎完全没有!

此外,当我在 TFS 中执行获取最新版本"时,除了暂时模糊进度条之外,似乎没有任何通知表明发生了任何事情.我本来希望最后会有通知说没有更新,或者 n 个文件被更新了.相反,我必须在 Visual Studio 中的 TFS 输出中搜索以查看发生了什么.对吗?

非常感谢!

安迪.

解决方案

感谢这个问题/答案,我很高兴使用 tf get/recursive/preview 大约一年了.

但事实证明, 将类似的东西集成到 Visual Studio 中,至少在 2010 年及以后是这样.

前往:

  • 查看菜单、其他窗口、源代码管理资源管理器
  • 导航到您感兴趣的路径,右键单击并选择比较"
  • 将目标路径"设置为等效的本地路径
  • 您可能想要取消选中显示仅存在于目标路径中的项目"
  • 好的

您可以很好地查看预览的潜在更改,然后右键单击单个文件并进行比较以准确查看您将获得的内容.

我很高兴今天有一位同事向我展示了这个!

My question relates to Team Foundation Server (TFS) and specifically, is there any way to know which files have changed on the server before doing a 'Get Latest Version (Recursive)?

In Visual Source Safe (VSS), you could do a 'Get' (I think) which showed you all the files which were being considered for the update and which files we're changed on the server (an consequently would be updated during the get). This functionality seems to be completely missing!

Also, when I do a 'Get Latest Version' in TFS, there doesn't seem to be any notification that any things occurred, other than the blur of a progress bar momentarily. I would have expected a notification at the end that there were no updates to be made, or n files were updated. Instead I have to hunt in the TFS output in Visual Studio to see what happened. Is this right?

Thanks a lot in advance!

Andy.

解决方案

Thanks to this question/answer, I have happily been using tf get /recursive /preview for about a year now.

But it turns out that there is something like this integrated into Visual Studio, at least 2010 and later.

Go to:

  • View menu, Other Windows, Source Control Explorer
  • navigate to the path you're interested in, right-click, and pick "Compare"
  • set "Target Path" to the equivalent local path
  • you might want to un-check "Show items that exist only in target path"
  • OK

You get a nice view of the potential changes previewed, and you right-click on individual files and do a Compare to see exactly what you're going to get.

I'm so glad a colleague showed me this today!

这篇关于TFS 中是否有“获取最新版本"预览?(如 VSS 'Get' 命令)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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