Drupal Association members fund grants that make connections all over the world.
Last updated May 26, 2016.
In a distributed version control system workflow, like Git, it's common to spin off separate branches for features, for bug fixes, or heck, just because you feel like it. On drupal.org's Git server, there are no branch/tag naming restrictions at the version control system level. You are free to name your branches whatever you like for your day-to-day work.
performance-bugfix are all acceptable branch names.
master branch should not be used and no downloadable releases can be tied to that branch. Master branch cleanup information here. Use
8.x-1.x as your main development branch (see below).
Quick Aside for new Module Developers
If you are new to Git and/or module contribution, please see Creating a branch or tag in Git. If you are looking to publish your release, please view "Creating a project release" for more information.
While there are no naming restrictions for branch and tag names in Git itself, when you want to make your changes available for download by the community on Drupal.org, branch and tag names need to follow a convention.
This naming convention is important for Drupal's community infrastructure, such as Update Status and the testing bot. Note that release tags must be made on the properly named release branch. Any tags/branches you intend to translate into actual downloadable releases on Drupal.org (as tarballs and zip files) need to follow this convention:
|Branch name||Branch Description||Downloadable release|
|7.x||7.x-dev release (core)||drupal-7.x-dev.tar.gz,
|7.x-1.x||7.x-1.x-dev release (contrib)||myproject-7.x-1.x-dev.tar.gz,
|7.x-2.x||7.x-2.x-dev release (contrib)||myproject-7.x-2.x-dev.tar.gz,
Packages for development releases are only created twice a day, so there may be as much as a 12 hour delay.
|Tag name||Tag Description||Downloadable release|
|7.0||7.0 release (core)||drupal-7.0.tar.gz,
|8.0-beta1||8.0-beta1 release (core)||drupal-8.0-beta1.tar.gz,
|7.x-2.3||7.x-2.3 release (contrib)||myproject-7.x-2.3.tar.gz,
|8.x-2.0-alpha6||8.x-2.0-alpha6 release (contrib)||myproject-8.x-2.0-alpha6.tar.gz,
There is a five minute delay before the creation of release packages.
Important note about release tags: Only the following labels, lowercase, can be used in release tags:
Read more about the distinctions between Alpha, Beta and RC here.
All release tags must end with a number. The numbers are just to distinguish releases of the same class. The first is numbered "1" (as in "alpha1"), the next "2", and so on.
7.x-1.0-rc1 will appear as a valid tag, but the following will NOT:
- 7.x-1.0-release1 (wrong word)
- 7.x-1.0-rc (doesn't end in a digit)
- 7.x-1.0-UNSTABLE1 (uppercase)
Release tags usage
unstable(deprecated): The project is not in a stable state. There are probably numerous unfixed bugs, including security issues. The API may change without notice. The database schema may change without hook_update_N beeing implemented. Usage and API may not be documented. Installing a new unstable release entails uninstalling the project, thereby losing all data. Only for those who want a early preview of the project. Not yet suitable for shared development.
alpha: Most reported errors are resolved, but there may still be serious outstanding known issues, including security issues. Project is not thoroughly tested, so there may also be many unknown bugs. There is a README.txt/README.md that documents the project and its API (if any). The API and DB schema may be unstable, but all changes to these are reported in the release notes, and hook_update_N is implemented to preserve data through schema changes, but no other upgrade/update path. Not suitable for production sites. Target audience is developers who wants to participate in testing, debugging and development of the project.
beta: All critical data loss and security bugs are resolved. If the module offers an API, it should be considered frozen, so that those using the API can start upgrading their projects. If it is an upgrade or update of a project, an upgrade/update path should be offered, and it should be possible for existing users to upgrade/update to the new version without loss of data. All documentation should be up to date. Target audience is developers who wants to participate in testing, debugging and development of the project, and developers of other projects that interfaces the project. Not generally suitable for production sites, but may be used on some production sites if the site administrator knows the project well, and knows how to handle any outstanding issues.
rc: A release candidate should only be created when the all critical bug type issues are reported fixed in the project's issue queue. This tag should only be used when the developer believes that the project is ready for use on a production site. There is no official best practice for how long a project should be a release candidate before creating a official .0 release, but it is suggested that it should be out for at least a month with status set to "needs review". If something (e.g. a new critical bug is reported) makes it necessary to create a new release during this period, a new release candidate should be created and this should remain for at least a month with status set to "needs review".
Git naming conventions compared with CVS
On the old drupal.org CVS servers, you were restricted to branch names meeting a specific pattern (
DRUPAL-7--1, and so on). If the branch name didn't match the pattern, it was rejected. This was nice for enforcing consistency in our diverse contributor community, especially considering the limited branch and merge capabilities of CVS.
Here's how old CVS branch and tag names map to Git branch and tag names:
|Branch Description||CVS branch name||Git branch name|
|7.x-dev release (core)||DRUPAL-7||7.x|
|7.x-1.x-dev release (contrib)||DRUPAL-7--1||7.x-1.x|
|7.x-2.x-dev release (contrib)||DRUPAL-7--2||7.x-2.x|
|the default branch||HEAD||master*|
* Note: Git's default master branch can be used, but no downloadable releases can be tied to that branch.
|Tag Description||CVS tag name||Git tag name|
|7.0 release (core)||DRUPAL-7-0||7.0|
|7.0-beta1 release (core)||DRUPAL-7-0-BETA1||7.0-beta1|
|6.x-2.3 release (contrib)||DRUPAL-6--2-3||6.x-2.3|
|6.x-2.0-alpha6 release (contrib)||DRUPAL-6--2-0-ALPHA6||6.x-2.0-alpha6|
So in summary, compared to CVS, Git will give you the freedom to branch early and branch often while in development, and use much less obtuse names for your tags/branches when you're ready to release. Yeehaw!
Delete this section of the page by July, 2011, as no one will care about CVS by then Delete this section when no one remembers anything about CVS. These messages serve as a reminder of CVS's existence thereby negating their purpose.