Post
by davenovak » Tue Mar 20, 2007 4:52 pm
In some of the work that I do, I end up building temporary, independent branches. (I have scripts to automate the creation of these branches. We use these for various testing scenarios.) When I'm done with my work and testing on those temporary branches, I want to obliterate them. But obliteration always fails because I have done branching within the temporary branch (as demonstrated in my original example).
Please keep in mind that these temporary branches I am building are all independent branches. There are no ties whatsoever to other branches. Therefore, there is no good reason that obliteration should fail.
Yes, perhaps not many people set up temporary branches for testing (or whatever), but I guarantee you that others will have this problem and wonder “why?”. Pretty much all it takes is a new source root, some files and folders under that root, some branching within the root, and you will not be able to easily obliterate that folder.
As a software designer and architect, I take difference to your statement that "we may have to make a complete new copy of all the files and history, which could make for a very, very large database for some of our users." While this may be the case for branches that span roots, my conversation in this thread has always been in the context of independent roots. I'm only asking that this work this way for the case that I describe -- where all branch dependencies are contained within the root that is being deleted. As is, it's a major pain for me to obliterate and my database is growing very large because of it.
I think the current behavior should be declared a bug and a fix should be forthcoming.