tags:

views:

19

answers:

1

Suppose I create an experimental branch in TFS. Now, I am finished with the branch, and I want to keep it around, but it has diverged sufficiently from the source branch that I want to make sure that no one can merge it back on accident. Is there a command in TFS to sever a branch, so that there is no merge path back?

A: 

AFAIK you can set permissions on a branch...

Thomas

Thomas Weller
Yah, I though tabout that too, but I can't think of a way to use permissions to prevent this. I do not want to make my main branch read-only, or prevent it from accepting all merges, because it does accept merges from other branches (we use the feature branching pattern). I can make my experimental branch read-only, but I don't think that will prevent anyone from merging it. I could deny all rights to the experimental branch, but then deleting it would probably be more succinct.
JMarsch
You have an explicit 'Merge' permission attribute for each branch. This should do the job, if I understand it correctly (didn't try that yet on my own...).
Thomas Weller