Guidelines for Committing Code to DSpace SVN

All of the below guidelines are just suggestions. They are not meant to create additional "red tape" during the normal development process. If you find they are getting in the way, let us know, we can always change them! Development processes and best practices change over time, and these guidelines should be no different.

General Guidelines for Committing

  1. Use JIRA to track your changes
  2. Share your code before committing
  3. Code "approval" processes
  4. Document your code early & often

"Trunk" Committing Rules

By "Trunk" we are not only referring to /dspace/trunk in SVN. We're also referring to the "Trunk" of any other production-quality, out-of-the-box modules within SVN.

The SVN Trunk is one of the few places that needs to remain well managed. As many committers work out of it on an almost daily basis, it can be detrimental to us all if in-complete or extremely buggy code is committed. Obviously, mistakes happen (and we've all made them), so don't worry if you accidentally commit something you didn't mean to (just try to roll it back as soon as you notice it). Here are the few rules we try to follow when committing code to Trunk:

  1. No incomplete features in "Trunk", ever.
  2. All new features must have documentation before committing to Trunk.