Move or remove old Blender branches #54
blender/blender has many old branches that take up disk space and make it harder to find the right branches. A Blender repository with just the main branch goes from 974MB to 680MB.
- Put all existing branches in
archive/blender-stagingand rename that repository to
- Remove all branches except a few that are actively developed, LTS branches, and the release branches for the upcoming and current stable release.
- Recommend developers to use branches in their own fork when possible, and make it a rule that temporary branches can be deleted and inactive branches moved to
blender-archiveby any developer, keeping the list of branches short at all times.
We can do the same for forks that now contain unnecessary branches. This would likely be done manually server side. Re-creating forks is problematic as it would break open pull requests.
This has been implemented for the main repository.
The forks are unaffected, as some developers (including myself) have some old branches in the fork for the future reference. It would not be cool if we remove a branch which someone wants to keep.
I've attached a script which we used to generate archival and removal of the branches. It could be modified by developers who wants to cleanup their forks. If someone wants to clean up their fork but does not want to have spike in activity we can then do cleanup on the server side.
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?