Delete orphaned branches in TFS 2010

I recently found myself in a situation in our TFS Source Control where I wanted to convert a main folder into a branch. However I was presented with an error message telling me that I couldn’t do this as a branch already existed below this folder. It turns out that a branch had previously been created incorrectly and then subsequently deleted. However, if you delete a branch its relationship remains and prevents you from branching its current parent.

I found the following blog post provided me with the answer. But more usefully it showed me the ‘show deleted items’ checkbox that gives you a much better historical view IMO of the Source Control structure. Maybe this should be the default view with the option to turn it off rather than on?

Advertisement

About Darren

I’m a Software Developer from Birmingham in the UK. I work primarily with Microsoft technologies which for pretty much everyone nowadays that means .NET. I do however like to step outside the distortion field as often as possible to soak up some of the Open Source goodness. Of late this has been mainly javascript and HTML5 as I'm fascinated by the direction the web will be taking over the next few years with the onslaught of the mobile platforms. Finally the world is catching up. If only more people had enjoyed the goodness that was the HP TC1100 so many years back! Most of my development is done in C# producing bespoke business applications. For the last five years this was for an IT services company but I’m now working in the IT department on some exciting work for a large UK institution. I’m not going to name them here as although the majority of this blog will be about the projects I’m working on and the knowledge I gain (and mistakes I make!) with them they are entirely my own opinions.
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s