Bobby
Bobby

Reputation: 1604

Checkout the files in a changeset to my local workspace

I am looking into a tf.exe commands that will allow me to checkout all the files to my local workspace from a checked in changeset id. So I can move the changeset from one branch to the other?

Is there any command that will allow me to do that ?

Thanks

Upvotes: 3

Views: 874

Answers (1)

Jeremy Thompson
Jeremy Thompson

Reputation: 65702

In the NuGet console, you can use the TFS Powershell Snapin from the TFS PowerTools.

Add-PsSnapin Microsoft.TeamFoundation.Powershell
Get-TfsChangeset <ChangesetNumber>

Another option is to open Tools > External Tools and add a external tool that calls TF.exe changeset and accepts/prompts arguments to supply the changeset number and if you want the other branch name so it can be done completely automatically.

Edit: If you need to check-out the files you can use:

tf checkout .\* /recursive.

Ref: TFS Command-Line Syntax

Upvotes: 1

Related Questions