1

I need to manually deploy some files to server. Is there is a quick way to get the copies of the files of an ChangeSet in TFS 2012?

Imran Qadir Baksh - Baloch
  • 32,612
  • 68
  • 179
  • 322

3 Answers3

3

You can use the getcs command from the tfpt power tool. This will get only the files that were included in a changeset.

This will allow you to, for example:

tfpt getcs /changeset:C1999
Edward Thomson
  • 74,857
  • 14
  • 158
  • 187
  • Is this will copy all change-set file, so that i can put in a folder? – Imran Qadir Baksh - Baloch May 01 '13 at 15:30
  • 1
    @user960567: This will do a get of all the files that were modified as part of the changeset. It will not get the respository as of the changeset, for that you would just do a `tf get`. You can then put it in a folder. – Edward Thomson May 01 '13 at 15:43
  • I used this command to get a list of all the files in several change sets and then used a text editor to massage the header info in each file down to jujst the file path. Then presto... I now have a list of the changed files, which I'll use to go through and apply a label. – sugardaddy Apr 20 '15 at 20:37
0

When I had this problem, I wanted to put the files "somewhere else" other than the workspace directory. The solution I found was in SO, of course:

TFS Get Specific Version into separate folder

Community
  • 1
  • 1
Engineer
  • 834
  • 1
  • 13
  • 27
0
  1. Go to Start and write "Developer powershell"
  2. Start the application
  3. Navigate to a folder within your workspace (cd %path%)
  4. Define a list of changesets for example:

    $myArray = 1028474,1028480,1028491

  5. Enter the following and press enter to execute:

    foreach ($element in $myArray) { tfpt getcs /changeset:$element}

Idan
  • 509
  • 2
  • 10
  • 24