system-config/modules
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
..
bup/manifests Rename backup to bup. 2012-08-07 06:19:37 +00:00
devstack_host Use unattended upgrades. 2012-06-05 22:59:46 +00:00
etherpad_lite Clean up post-apache move carnage. 2012-08-12 17:49:33 +00:00
exim Style Guide updates for puppet-lint 2012-09-28 21:24:49 +00:00
gerrit Add Tempest to directly-released projects 2012-09-28 16:09:07 +00:00
gerritbot Style Guide updates for puppet-lint 2012-09-28 21:24:49 +00:00
github Add support for initial project creation. 2012-08-02 15:49:02 +00:00
iptables Remove trailing whitespaces in regular file 2012-03-09 16:02:04 +08:00
jenkins Add rubygems dependency for puppet-lint 2012-09-27 23:09:23 +00:00
launchpad_sync Style Guide updates for puppet-lint 2012-09-28 21:24:49 +00:00
lodgeit Clean up post-apache move carnage. 2012-08-12 17:49:33 +00:00
logrotate Remove uses of remove_cron. 2012-07-27 13:12:16 -05:00
mailman Clean up post-apache move carnage. 2012-08-12 17:49:33 +00:00
mediawiki Fix typo in mediawiki app module. 2012-08-19 18:27:16 +00:00
meetbot Add meetingname to meetbot log files. 2012-08-22 16:24:31 +00:00
ntp/manifests Set some parameters to more sensible defaults. 2012-07-29 13:04:17 -05:00
openssl/manifests Initial commit of MediaWiki module 2012-08-12 18:40:54 +00:00
openstack_project Gerrit Whitespace Change Detection 2012-10-01 03:10:36 +00:00
orchestra Remove trailing whitespaces in regular file 2012-03-09 16:02:04 +08:00
pip/manifests Move python-pip include to a class. 2012-07-23 15:43:27 -05:00
planet/manifests Align all web server usage on apache module. 2012-08-12 17:03:46 +00:00
puppetboot logdest doesn't seem to work like you'd expect. 2012-08-20 00:24:50 +00:00
pypimirror Align all web server usage on apache module. 2012-08-12 17:03:46 +00:00
remove_nginx/manifests We need to stop nginx before we can start apache. 2012-08-12 17:12:13 +00:00
snmpd Backport the init script from precise for snmpd. 2012-07-23 08:05:44 -05:00
ssh Use unattended upgrades. 2012-06-05 22:59:46 +00:00
subversion/manifests Initial commit of MediaWiki module 2012-08-12 18:40:54 +00:00
sudoers Rework all of the slaves for virtualenv. 2011-10-13 11:53:33 -04:00
tmpreaper Fix syntax error in tmpreaper sleep. 2012-09-05 14:54:59 +00:00
ulimit Add ulimit module. 2012-06-27 10:12:53 -07:00
unattended_upgrades Replace use of local apt module with upstream. 2012-08-07 07:10:43 +00:00
user/manifests Rework all of the slaves for virtualenv. 2011-10-13 11:53:33 -04:00
zuul Be conservative requiring python-yaml. 2012-09-26 23:40:42 +00:00