Replacement for "Team Foundation PowerTools" TFPT GETCS command using TF VC commands

408 Views Asked by At

I am using Azure DevOps Build/Release pipelines to duplicate PowerShell deployment scripts. Most of them use "Team Foundation PowerTools" TFPT GETCS command. In order to use the pipelines, I need to use TF VC commands.

Does anyone know of a replacement for "Team Foundation PowerTools" TFPT GETCS command

1

There are 1 best solutions below

0
PatrickLu-MSFT On

GetCS Command

Use the GetCS (Get Changeset) command to get the changes in a particular changeset. Example: tfpt getcs /changeset:changesetnum

According to the description, this command is used to get just the files affected by a specific Changeset.

Unfortunately, we do not have any corresponding command in tf.exe version control command.

As we know that a changeset contains all the pending changes of one check in operation. And the change type may be None, Add, Edit, Encoding, Rename and etc. You can refer to this article for a better knowledge of ChangeType.

Instead of TFPT Getcs command, you could also use TFS API to achieve the similar thing.

A detail sample for your reference: https://stackoverflow.com/a/9350130/5391065