Commit guidelines

From MapbenderWiki

Jump to: navigation, search

things to keep in mind when committing a change to SVN. Please stick to these rules, otherwise someone else will have to fix it and might break things. If no one fixes it, the overall quality of the project is decreased.

Contents

Before an SVN commit

SVN keywords

Add SVN keywords, if the file is new (If it's not a new file, make sure it has SVN keywords). The $Id$ will be replaced by something meaningful like

$Id: mod_logout.php 2738 2008-08-05 07:59:34Z christoph $

after you've committed the file. In Subclipse, do it like this:

Navigator 
→ right-click the new file 
→ Team 
→ Set Property 
→ Property name: "svn:keywords"; Property Content: "HeadURL Id LastChangedBy LastChangedDate LastChangedRevision"

commit message

Please supply a meaningful message. The best way is just to link to a Trac ticket! Image you fixed bug #121. The just add

bug fix: http://trac.osgeo.org/mapbender/ticket/121

as commit message. Commit all files of a bug fix at once.

After an SVN commit

Trac

Read more about using Trac.

Wiki


SVN pre-commit hooks

Some of the above could be done automatically by an SVN pre-commit hook. Let's discuss how this could be achieved at the discussion site.

Views
Personal tools