https://bugzilla.wikimedia.org/show_bug.cgi?id=41074
Web browser: ---
Bug #: 41074
Summary: report trivial rebases in Gerrit
Product: Wikimedia
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: Git/Gerrit
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
We are often rebasing changes with no real modification. For example when
correcting a typo in a commit message or child changes being automatically
rebased when one of their ancestor as been altered.
OpenStack is using a python script that detect such trivial rebase and will
send a comment to each changes mentioning it. That might help us a bit when
doing code review.
The python script is at:
https://github.com/openstack/openstack-ci-puppet/blob/master/modules/openstack_project/files/gerrit/scripts/trivial_rebase.py
Can be installed in /var/lib/gerrit/scripts/ and added to the patchset-created
hook script:
timeout -k 2m 10m python /usr/local/gerrit/scripts/trivial_rebase.py \
patchset-created \
--whitespace \
--private-key-path=<SSH HOST KEY OF TRIVIAL USER> \
[email protected] "$@"
Example output somewhere in comments of https://review.openstack.org/#/c/12324/
Trivial Rebase Oct 8
Patch Set 5:
New patchset patch-id matches previous patchset, but whitespace content has
changed.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l