是否有“获取最新版本”?在 TFS 中预览? (如VSS“Get”命令)

发布于 2024-10-11 13:48:05 字数 384 浏览 8 评论 0原文

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

在 Visual Source Safe (VSS) 中,您可以执行“获取”(我认为),它向您显示正在考虑更新的所有文件以及我们在服务器上更改的文件(因此将在更新期间更新)得到)。这个功能好像完全没有了!

另外,当我在 TFS 中执行“获取最新版本”时,除了进度条暂时模糊之外,似乎没有任何通知表明发生了任何事情。我本来希望最后会收到一条通知,表明没有要进行的更新,或者 n 个文件已更新。相反,我必须在 Visual Studio 中查找 TFS 输出以查看发生了什么。这是对的吗?

预先非常感谢!

安迪.

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.

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

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

发布评论

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

评论(2

九公里浅绿 2024-10-18 13:48:05

感谢这个问题/答案,我已经愉快地使用 tf get /recursive /preview 大约一年了。

但事实证明,至少在 2010 年及以后,有类似的东西集成到 Visual Studio 中。

转到:

  • “视图”菜单、“其他 Windows”、“源代码管理资源管理器”
  • 导航到您感兴趣的路径,右键单击,然后选择“比较”,
  • 将“目标路径”设置为
  • 您可能想要取消选中“显示”的等效本地 路径仅存在于目标路径中的项目”
  • 确定

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

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

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!

鸵鸟症 2024-10-18 13:48:05

Visual Studio 中没有内置选项,但 TFS 命令行上有 /preview 选项。有关所有命令行选项的更多信息,请参见 Get 命令的 MSDN 页面

TFS 命令您需要的是:

get "[path]" /recursive /preview /login:[user],[password]

在 Visual Studio 中的外部工具上进行设置。

Title: "Get Latest Preview"  
Command: c:\program files\microsoft visual studio 10.0\Common7\IDE\TF.exe
Arguments: [See above]
Initial Directory: ""

确保“使用输出窗口”已启用,而“提示输入参数”未启用。

There's not one built in to Visual Studio, but there is the /preview option on the TFS command line. There's more information on all the command line options on the MSDN page for the Get Command

The TFS command you need is:

get "[path]" /recursive /preview /login:[user],[password]

Set this up on an External Tool in Visual Studio.

Title: "Get Latest Preview"  
Command: c:\program files\microsoft visual studio 10.0\Common7\IDE\TF.exe
Arguments: [See above]
Initial Directory: ""

Make sure that "Use Output window" is enabled and "Prompt for arguments" isn't.

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