获取 TFS 工作区上的当前变更集 ID [英] Get current changeset id on workspace for TFS

查看:32
本文介绍了获取 TFS 工作区上的当前变更集 ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何确定我当前在本地工作区中有哪些变更集?

How do I figure out what changeset I currently have in my local workspace?

当然,我可以选择一个文件并查看其历史记录.但是,如果该文件最近未更新,则其变更集可能比同一解决方案中最近更新的文件更旧.

Sure, I can pick one file and view its history. However, if that file was not recently updated, its changeset is probably older than the more recently updated files in the same solution.

我们可能犯的一个错误是我们查看了解决方案文件的历史记录,但解决方案文件很少更改,除非您要添加新项目/进行解决方案级别的更改.

One possible mistake that we may make is that we view the history on the solution file, however the solution file rarely changes unless you're adding a new project / making solution-level changes.

最后要找出变更集,我需要记住最新更改的文件并查看它们的历史记录.

In the end to figure out the changeset I need to remember what were the latest files changed and view their history.

有没有更好的方法来做到这一点?

Is there a better way to do this?

推荐答案

您的答案在 Buck Hodges 的 MSDN 博客上:如何确定工作区中的最新变更集

Your answer is on a MSDN blog by Buck Hodges: How to determine the latest changeset in your workspace

从工作区的根(顶部),在 cmd 中执行:

from the root (top) of your workspace, in cmd perform:

tf history . /r /noprompt /stopafter:1 /version:W

这篇关于获取 TFS 工作区上的当前变更集 ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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