AndyPham

Hi all,

Here is the directory ProjA structure.

ProjA

-----folder1

-----folder3

-----folder3

-----folder4

-----file1.sln

-----file2.doc

-----file3.txt

When I'm trying label $/Root/ProjA. for example, ProjA_1.0.0.0, from source control explore find label, open label by press edit. All I can see are folder1, folder2, folder3, folder4.

File1.sln, file2.doc, file3.txt are not included in label ProjA_1.0.0.0. Did I do something wrong or missing some important step

Best Regards,



Re: Team Foundation Server - Version Control Label does not pick file under the root directory !!!!

Riham - MSFT

Could you try "tf label $/Root/ProjA/*.* ProjA_1.0.0.0"



Re: Team Foundation Server - Version Control Label does not pick file under the root directory !!!!

AndyPham

Here is the cmd that I ran, but no luck

tf label ProjA_1.0.0.1 $/Root/ProjA/*.* /r

Best Regards,





Re: Team Foundation Server - Version Control Label does not pick file under the root directory !!!!

Riham - MSFT

Are you sure that all files/folders in this folder structure are correctly mapped

Try to make sure by opening file->source control->workspaces and check the mappings of your current workspace.





Re: Team Foundation Server - Version Control Label does not pick file under the root directory !!!!

AndyPham

Yes, I did double, triple check that the root was mapped into correct workspace. Btw, can we create label with above command line successful without had workspace mapped correctly Just wonder!!

Best Regards,





Re: Team Foundation Server - Version Control Label does not pick file under the root directory !!!!

Richard Berg MSFT

Yes, it should work whether or not they are mapped.

What versionspec are you passing Make sure that the items are really there (not moved to another folder, not deleted) at that point in time.

Also, try using tf labels /f:detailed to dump the contents of the label. Maybe there is a bug in the UI.





Re: Team Foundation Server - Version Control Label does not pick file under the root directory !!!!

Riham - MSFT

What I needed you to check is that the files are already added to the workspace and are not local only.

Would you try to add only one of the files to the label, for example $/Root/ProjA/file1.sln only, do you get some error





Re: Team Foundation Server - Version Control Label does not pick file under the root directory !!!!

AndyPham

Like you suggested, I've run tf labels labelname /f:detail , those files weren't there.

I've also tried to add file1.sln file into existing label from source control explore. I got no error message, and this file was not show up in the edit label dialog. What the heck is going on

Best Regards,





Re: Team Foundation Server - Version Control Label does not pick file under the root directory !!!!

Richard Berg MSFT

AndyPham wrote:

Here is the cmd that I ran, but no luck

tf label ProjA_1.0.0.1 $/Root/ProjA/*.* /r

Best Regards,

What was the output of this command





Re: Team Foundation Server - Version Control Label does not pick file under the root directory !!!!

AndyPham

Here is cmd I ran

tf label PROJA_1.0.0.2 $/Root/ProjA/*.* /r

The output is:

Created label PROJA_1.0.0.2@$/ROOT





Re: Team Foundation Server - Version Control Label does not pick file under the root directory !!!!

Richard Berg MSFT

Ok. What is the output of tf dir $/Root/ProjA/*.* /r Does it contain all the items you expect



Re: Team Foundation Server - Version Control Label does not pick file under the root directory !!!!

AndyPham

Like I mention above. Nope, label did not contain file1.sln file.



Re: Team Foundation Server - Version Control Label does not pick file under the root directory !!!!

Richard Berg MSFT

Right, but what about Dir



Re: Team Foundation Server - Version Control Label does not pick file under the root directory !!!!

AndyPham

I'm so sorry but please read before you ask so we both could save alot of time.

Like I mention when I created label either from command line or from source control explore. All file and directory are included but only files at the root of label are not. Did I make a point

Best Regards,





Re: Team Foundation Server - Version Control Label does not pick file under the root directory !!!!

Riham - MSFT

 Richard Berg MSFT wrote:
What is the output of tf dir $/Root/ProjA/*.* /r

Open command line and type tf dir $/Root/ProjA/*.* /r, ("Dir" not "Label"). this will show you the list of files under ProjA.

Does the output contain the files you want or not output here means the output of the dir command, not the files in the label.