Bring the ContributionReviews page up to date

Also, added information on how to use git to submit and receive patches.

git-svn-id: http://soc.googlecode.com/svn/wiki@2641 5fae56a1-394a-0410-ba46-5107137fd53f
diff --git a/ContributionReviews.wiki b/ContributionReviews.wiki
index cb774dd..5cb4af6 100644
--- a/ContributionReviews.wiki
+++ b/ContributionReviews.wiki
@@ -4,9 +4,8 @@
 The [MelangeIntro Melange project] has a variety of opportunities for the
 community to contribute, including:
 
- * documenting [http://code.google.com/p/soc/w/list?can=2&q=phase:Requirements feature requirements]
- * designing the [http://code.google.com/p/soc/w/list?can=2&q=phase:Design%20design:Model database schema] and different [http://code.google.com/p/soc/w/list?can=2&q=phase:Design%20design:View Views]
- * writing [http://code.google.com/p/soc/w/list?can=2&q=phase:Implementation source code]
+ * Creating a http://tinyurl.com/new-issue if a bug is found
+ * Fixing bugs that annoy them
 
 Each of these contributions is subject to review by other members of the
 Melange community.  The guidelines for the review of various types of
@@ -51,17 +50,18 @@
 [ContributionReviews#Suggested_patches_from_casual_contributors patches] and
 [ContributionReviews#Reviews_after_committed_patches commits]. Larger
 contributions, such as entire new features, probably require a different
-approach, such as development in a
-[ContributionReviews#Branches development branch].  These have similar
-review approaches, but tailored to the specific situation.
+approach, such as incremental patches and communication with the other 
+developers.  These have similar review approaches, but tailored to the 
+specific situation.
 
 === Code changes should be atomic ===
 
 The commit of a source code change should result in a source repository
 where the software [BuildingMelange builds] and passes any existing
 [TestingGuidelines tests].  So, all related changes need to be committed
-in a single patch, a single commit, or, in the case of branches, a
-single merge.
+in such a way that each patch passes the test suite.  That usually means
+that new functionality is introduced in one patch, 'enabled' in another one,
+and the old functionality removed in a third one.
 
 === Patches ===
 
@@ -74,32 +74,44 @@
 
 Patches should be presented for review in the "unified `diff`" format,
 which is the output resulting from the `svn diff` command (the same format
-as that produced by`diff -uNr`, but generated automatically from the
-altered file in the working copy and the original file in the `.svn`
-subdirectory).  This is also the same format as the diff contained in the
-commit log messages emailed to the developer mailing list.
+as that produced by`diff -uNr`).  This is also the same format as the diff 
+contained in the commit log messages emailed to the developer mailing list.
 
 One special note about creating patches:  please create the patch from
 the `/trunk/` directory (or the `/wiki/` directory if it is a documentation
 change), so that the reviewers and potential committers can apply the
 patch from the base of their `/trunk/` working copy.  For example, for
-a checkout of `https://soc.googlecode.com/svn/trunk/` to `~/svn/soc`,
+a checkout of `https://soc.googlecode.com/svn/trunk/` to `~/code/melange`,
 create the code review patch with something like:
 
 {{{
-cd ~/svn/soc
+cd ~/code/melange
 svn diff soc/models/new_model.py soc/views/deleted_model.py > my_change.diff
 }}}
 
+Or if using git (assuming origin/master is current upstream and that the desired changes have been committed):
+
+{{{
+cd ~/code/melange
+git format-patch --no-color --no-prefix --no-numbered origin/master..
+}}}
+
 In this example, `new_model.py` would be a newly-added module, and
 `deleted_model.py` would be a just-deleted module.  The reviewer can
 then apply the patch using something like:
 
 {{{
-cd ~/svn/soc
+cd ~/code/melange
 patch -p0 < my_change.diff
 }}}
 
+Or, if using git:
+
+{{{
+cd ~/code/melange
+git apply --whitespace=fix -p0 my_change.diff
+}}}
+
 The same `/trunk/` directory root approach should be used with
 [http://codereviews.googleopensourceprograms.com/static/upload.py `upload.py`]
 to submit
@@ -123,12 +135,20 @@
 svn diff some_module.py > some_module.diff
 }}}
 
+Or, if using git:
+
+{{{
+git format-patch --no-color origin/master..
+}}}
+
 For multiple files changed in the same patch, use something like:
 
 {{{
 svn diff some_module.py some_other_module.py > my_new_feature.diff
 }}}
 
+If using git just commit the changes and use format-patch to generate the diff.
+
 Alternately, committers can use `upload.py` to submit
 [ContributionReviews#Using_Rietveld_for_code_reviews Rietveld code reviews].
 
@@ -149,11 +169,18 @@
 do something like this and respond to the prompts:
 
 {{{
-cd ~/svn/soc
+cd ~/code/melange
 ./thirdparty/rietveld/upload.py \
   -- soc/models/new_model.py soc/models_deleted_model.py
 }}}
 
+Or, if using git:
+
+{{{
+cd ~/code/melange
+./thirdparty/rietveld/upload.py origin/master
+}}}
+
 To upload an updated diff for an existing code review in progress, simply
 supply the extra `--issue=<the existing issue number>` option.  Rietveld
 will then display the deltas between the previously supplied diff and the
@@ -257,8 +284,8 @@
 [MailingListsGuidelines#Developer_list developer mailing list] are then
 encouraged to review the change, which will be present in the `svn` commit
 email that was sent to the mailing list.  At least one other person with
-commit access should acknowledge the change with a brief "looks good"
-message in response (sent back to the list).  This does _not_ prevent
+commit access should acknowledge the change with a brief "looks good to me" (LGTM)
+message in response (sent back to the list).  This does of course not prevent
 other list participants from being able to make suggestions, request
 changes, etc.
 
@@ -300,18 +327,17 @@
 Committers should use the template below for `svn commit` log messages:
 
 {{{
-Log message detailing the change.
+One line, under 60-80 characters giving a short description of the change
+
+After a blank line, a more detailed log message explaining the
+reason of the change (not necessarily what was changed, 
+as that can be seen by readin the patch). Please wrap your lines
+at 60-80  characters again.
 
 Patch by: Carl Contributor
-Review by: Rick Reviewer
-Review issue: N
-Review URL: http://codereviews.googleopensourceprograms.com/N
+Reviewed by: Rick Reviewer
 }}}
 
-`N` is the issue number assigned to the patch by the 
-[ContributionReviews#Using_Rietveld_for_code_reviews Rietveld] code
-review tool.
-
 Note that the person listed with "Patch by:" is the contributor (that
 is, author) of the patch, not necessarily the committer who executes
 the `svn commit` command.  Patches from
@@ -321,20 +347,7 @@
 
 === Branches ===
 
-Occasionally, a major new feature requires changes to many source files.
-In these cases (that are hopefully rare), it may make sense to do the
-development in a development branch and then `svn merge` the changes back
-into the `/trunk/` once the feature is complete.  While this is a good
-way for a single developer or small team to experiment with major changes
-to the [SoCOverview SoC framework] and
-[MelangeIntro Melange web applications], these sorts of development efforts
-should be started with care.  The effort to successfully merge a major
-overhaul of the existing code can be substantial.
-
-Given the nature of Python and [AppEngine Google App Engine], it is usually
-possible to do most new feature development in `/trunk/`, adding new modules
-and tests in isolation before a single commit that integrates the new code
-with the existing code that would depend on it.
+Branches are used for releases only, due to the unfriendly merge nature of svn we do not use branches for "long term development".
 
 == Documentation ==