如何使用 tfvc REST API 获取挂起的更改信息

问题描述 投票:0回答:1

我正在尝试将客户端对象模型(Microsoft.TeamFoundationServer.ExtendedClient)

Workspace.GetPendingChanges(new[] { new ItemSpec(assetDirectory, RecursionType.Full) })
替换为 TFVC REST API,但我找不到相应的 API 来查询有关待处理更改的信息(即确定该项目是否已锁定)。

c# azure-devops-rest-api tfvc
1个回答
0
投票

恐怕没有这样的Rest API可以获取TFVC的Pending Changes信息。

除了客户端对象模块之外,我们还可以使用 tf stat 命令来获取 TFVC Pending Changes 信息。

例如:

tf.exe stat {workspacepath} /recursive /format:detailed

结果:

enter image description here

它将返回 TFVC Pending Changes 信息(包括锁定信息)。

© www.soinside.com 2019 - 2024. All rights reserved.