TFS Source control

Hi all,

I am currently investigating FB and TFS. We previously used VSS, so I thought I just change the actions piece by piece… But some of the things I can’t get done.

I would like to check out files from multiple folders in TFS to one single folder.

Like for example
$/project1/module1/file.cpp
$/project1/module2/file2.cpp
and get those to my c:\buildtemp folder.

I can not get that done. I thougth I just had to use “use folder” in the TFS get action, but that doesn’t seem to work. I can only specify an existing working folder and then TFS gets the file to its relative path.

In the files editbox, can I specify a filename or do I need the full path to my local file?

Do I need to map a working folder, get the file, unmap the working folder for each file I want to get to same folder?

Any help appreciated.

Raoul

Hi Raoul

I’m not sure what the answer is on this… our TFS virtual machine seems to have problems at the moment and I can’t connect to test this. Angus is our TFS expert but he’s away this week, I will get him to look at this first thing monday morning. I’ll have a look at the source code today and see if I can figure out what command line options are being used as I believe these actions call the hatteras command line tool (h.exe I think).



It is TF.exe, but I can't understand what its output is.
I might have a look if I can find some TF help somewhere and let you know when I do.

Hi Raoul,

I’m currently reinstalling our TF server due to a domain change (major headache.)

The limitation you’re experiencing is that the TF actions don’t let you supply a /server: (/s) parameter, they rely on the working directory for Team Foundation to “guess” the server. The one situation I didn’t think of is when you want to get/checkout to a different directory. I’ll add an option to enable you to specify /server in the next release.

It will be available as soon as our TF install is back up and running (so I can test it.)

- Angus

PS H.exe was renamed TF.exe as of beta 2, I think. Same program, though.

I can’t test this now, but a temporary workaround might be to map a dummy working directory on the server to the directory you want to check out to (ie c:\buildtemp), and then use the action as you describe it. tf.exe might be able to infer the server name from the dummy working directory context (or it might complain about a working directory conflict, I’m not sure.)

Angus,

I think getting to a different directory isn’t possible. It will always get the file to the relative path from your TFS. Getting all files to one single directory doesn’t seem to be possible… Unless you map, get and unmap and do that for all files you need to get. That is a pain in the backside. Annoying to find these kind of differences between VSS and TFS.