|Version 1 (modified by jacob, 8 years ago) (diff)|
Django's branch policy
This page outlines how we use SVN branches for Django development.
In general, most development should be confined to the trunk, and the trunk should be kept stable. People should be able to run production sites against trunk at any time.
Thus, large architectural changes -- that is, changes too large to be encapsulated in a single patch, or changes that need multiple eyes on them -- will have branches dedicated to them. See, for example, the [source:django/branches/i18n i18n branch]. If you have a change of this nature you would like to work on, ask on the django-developers list for a branch to be created for you.
We will only branch entire copies of the Django tree, even if work is only happening on part of that tree. This makes switching to a branch painless.
Developers working on a branch should periodically merge changes from the trunk into the branch (please merge at least once a week). Every time you merge from the trunk note the merge and revision numbers in the commit message.
Once the branch is stable and ready to be merged into the trunk, alert django-developers.
After a branch has been merged, it should be considered "dead"; write access to it will be disabled, and old branches will be periodically "trimmed". To keep our SVN wrangling to a minimum, we won't be merging from a given branch into the trunk more than once.
To test a given branch, you can simple check out the entire branch, or if you've got a working directory you'd like to switch to use a branch, you can use
svn switch http://code.djangoproject.com/svn/django/branches/<branch>/
in the root of your Django sandbox.