简体   繁体   中英

Why is the [Trunk] icon not displayed for my Trunk branch?

In TFS when I create a new folder strcuture and added a new folder to the root folder called "Trunk". Other solutions in TFS display a [Trunk] icon beside that folder like this

在此处输入图片说明

BUT my [Trunk] branch just has a [Folder] icon beside it. Why?

In TFS, we can't create branch directly in Solution Explorer. You have to convert a folder to a branch.

在此处输入图片说明

If you have done this and still can't show the branch icon. Double check if you encounter the following situations:

Important:

You cannot nest branches; therefore, you cannot convert any folder to a branch if it either contains a branch or is contained by a branch. For example, the following illustration shows how neither the parent nor the child of the FeatureTeamA branch can be converted to a branch. 在此处输入图片说明

You need to tell TFS it's a branch, rather than a folder

right click on the folder you wish to convert, Click 'Branching and Merging', choose convert to branch. Tfs will now treat the folder as a branch

上下文菜单>转换为分支

this is from TFS13, I'd assume 15 will be the same

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM