Allow branches to be deleted when they have changesets
Currently I get told I can't delete a branch "because it has revisions". I appreciate the warning, but it should allow me to say "ok, delete the revisions too" rather than cancelling the delete. Deleting each changeset manually to allow the branch to be deleted is a pain.
We need more feedback to consider it… and it seems nobody answered it in a long time :-(
-
Douglas Lassance commented
Not being able to delete a branch without jumping hoops is pretty bad if you ask me.
-
Daniel commented
I made a branch and commited something to it just to test something. Now I'm stack with this branch forever. This is so annoying
-
Nikolaos commented
I believe this could be due to that the branch view is getting more and more obsolete branches which bloats the list.
Even though there is a filter, the unfiltered view is still a quite convenient way to get an overview.
An alternative could be to mark these branches as archived, which makes them disappear from the standard view. This could go hand in hand with an additional toggle for "show archived branches" and "show only archived branches"
Cheers,
-
Hi Ben,
So, you really want to get rid of the changes too, I mean, not only the branch, but also all changes done in the branch, correct?
I understand your only issue is to avoid this branch to be merged, correct? I mean, otherwise, is that a big pain to just keep it around? Maybe the feature will be reconsidered in the future or something...
You can always remove the "mergefrom" permission to the branch to avoid issues.
We can consider implementing some sort of "branch delete" even when there are changes, but this is not something very high prio to us... it all depends on how many users upvote.
-
Jason Misavage commented
"Why would you like to delete a branch?"
To clean up branches for features that were started but later abandoned and should not be merged into main. -
Ben,
Deleting changesets and branches is definitely not a recommended practice. Why would you like to delete a branch?