English 中文(简体)
我怎么能问一下,在TFS中,有一杯子向我显示每个物体的最新变化。
原标题:How can I query a folder in TFS to show me the latest ChangeSet for each object?

Currently, our DBAs require the TFS changeset number for any scripts/stored procedures/functions that need to get deployed. I have a folder in our TFS project with all of my stored procedures in it, and I d like to run a single query that will list each object in that folder and the latest changeset. I m using VS2010 Team Explorer with TFS Server 2008 (I believe), and would be happy to script it in PowerShell or some other tool, but don t know where to begin. Can someone provide me some direction?

最佳回答

技援方案有许多切入点,因此可以提出这样的问题。 如果是我的话,我只是使用<代码>tf.exe的指挥线客户。 例如:

tf properties $/Path/To/Folder -recursive

这将向您显示,每个档案中每个文件的最新改动(以及其他信息)。

虽然指挥线客户的产出是了解情况良好、易于分门别类的,但你可能仍然倾向于采用更符合方案的方式来这样做。 你们能够利用非常强大的力量。 NET API,以便查询服务器。 页: 1 方法。 例如:

ItemSet items = vcs.GetItems(@"$/Path/To/Folder", RecursionType.Full);

如果你有点,你就应当看,其中包括TFS电力机壳延伸机。 我的权力薄弱,但我认为,上列强的壳牌公司是这样:

$tfs = get-tfs http://yourserver:8080/tfs/YourCollection
$tfs.VCS.GetItems( $/Path/To/Folder , $tfs.RecursionType::Full)
问题回答

暂无回答




相关问题
Why not use TFS as a build / CI solution?

Currently our build solution is set up using TFS + MS Build scripts. TFS is also being used as a CI server. I ve seen several posts on this site telling people about other CI solutions. Are there ...

Get files from TFS under Linux [closed]

is there a free (command line) tool for linux which with I can get all files from a TFS-Repository (no Check in / Check out required - only get actual version)?

upgrading tfs 2008 sp1 to use sql server 2008

I have an instance of tfs 2008 supported by sql server 2005. I want to change the sql server machine by doing a restore based move. I also want to change the version of sql server to 2008. I know ...

Using Git in a TFS shop

Using Git at home has spoiled me - I now find using TFS at work to be a bit of a drag and want to explore the possibility of using Git locally and syncing somehow with TFS. I figure there are a few ...

TFSReg in 2010 Beta 2?

does anybody know what is the equivalent of the TFSReg.exe command-line tool in 2010 Beta 2? I cannot find it anywhere, I searched the entire Program Files tree. Was it renamed? Moved? Replaced by ...

热门标签