system-config/modules/openstack_project/files
Jeremy Stanley 202614e155 Gerrit Whitespace Change Detection
Consider whitespace changes significant enough not to reapply code
reviews, but still comment if that's all which changed between
patchsets. This addresses bug 1057506.

* modules/openstack_project/files/gerrit/scripts/trivial_rebase.py
(GetPatchId): Add a flag called consider_whitespace, but defaulting to
False so as to preserve default behavior of the module. Add conditional
behavior to replace all spaces and tabs with percent signs before
calculating the patch-id hash.
(Main): Add a --whitespace command-line option to turn on whitespace
change checking. If enabled and if normal GetPatchId calls return a
match, re-run with consider_whitespace set to True and apply a comment
to the new patchset in Gerrit if the result is non-matching.

* modules/openstack_project/templates/gerrit_patchset-created.erb: Add
--whitespace to the trivial_rebase.py invocation, enabling whitespace
checking.

Change-Id: I89c479614a637717cf515a5d3f6d03b5f7830581
Reviewed-on: https://review.openstack.org/13775
Reviewed-by: James E. Blair <corvus@inaugust.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Paul Belanger <paul.belanger@polybeacon.com>
Approved: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
2012-10-01 03:10:36 +00:00
..
gerrit Gerrit Whitespace Change Detection 2012-10-01 03:10:36 +00:00
jenkins Move OpenStack classes to openstack_project module 2012-07-23 10:31:58 -05:00
jenkins_job_builder/config Add stable/folsom periodic bitrot jobs. 2012-10-01 03:09:49 +00:00
puppetmaster Add root hiera config for the puppetmaster. 2012-07-24 11:27:09 -05:00
zuul Add sandbox merge job. 2012-09-27 23:33:39 +00:00
openstack-page-bkg.jpg Move OpenStack branding and launchpad integration. 2012-07-23 14:46:55 -05:00
openstack.png Move OpenStack branding and launchpad integration. 2012-07-23 14:46:55 -05:00
review-dev.projects.yaml Add support for initial project creation. 2012-08-02 15:49:02 +00:00
review.projects.yaml Add volume-api project. 2012-09-10 16:23:08 +00:00