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?
Asked
Active
Viewed 4,890 times
3 Answers
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
0
- Go to Start and write "Developer powershell"
- Start the application
- Navigate to a folder within your workspace (cd %path%)
Define a list of changesets for example:
$myArray = 1028474,1028480,1028491
Enter the following and press enter to execute:
foreach ($element in $myArray) { tfpt getcs /changeset:$element}

Idan
- 509
- 2
- 10
- 24