Branching off renamed trunk
Recently I got asked a small but unobvious branching question. Suppose you have a folder named FolderName, and for some reason you have renamed it to NewFolderName. All is well, but now you decided you want to create a branch from that folder, and to branch from the version prior to renaming.
Due to the reasons detailed in my older post, you will not be able to use branching UI for the operation. The only way to achieve that is to use tf command-line client branch command where you will explicitly specify version you branch from and the folder name at that revision
tf branch /Project/FolderName /Project/Branch /version:C123
Typical mistake people make is to use current item name, NewFolderName instead of the name that existed in the past(i.e. FolderName at the time of changeset 123).
Comment Notification
If you would like to receive an email when updates are made to this post, please register here
Subscribe to this post's comments using
My name is Eugene Zakhareyev, and I am currently working at Windows division Internal Tools team in Microsoft. In the past I was a consultant at large and Team System MVP, and the past still shapes my current interests.