Hello,
you are all quite right, I should perform a merge operation to get file1.txt in branch test
The problem I encountered occured when I did a programmatic (using the API) to bring over existing code to TFS. After add and branch, I found out that I forgot some files. So I did rerun the fixed program, that did get file0.txt and file1.txt, added file1.txt and did the branch.
One issue still remains. In both cases, I specified to branch 'main' to 'test'.
The first time, a 'test' folder was created alongside the 'main' folder (i.e. A/main and A/test).
The second time, a new main folder was created under test. So I ended up with A/main (containing file0 and file1), A/test (containing file0) and A/test/main (containing file0 and file1).
It appears to me that a folder for the branch is created if it does not yet exist (case 1), while if the branch folder allready exists, the folder to branch is placed as a subfolder (case2).
So I was surprised that the branch command behaved differently in both cases.
Anyhow, this is the first time I use this kind of forum and I am very pleased (happy) for the fast and usefull response.
Thanks,
Geert
|