[gcc-reposurgeon-8(refs/meta/config)] Update hook configuration.

Joseph Myers jsm28@gcc.gnu.org
Thu Sep 3 00:05:50 GMT 2020


https://gcc.gnu.org/g:7c7fdd8362a3c871454cb68645171f4f3e4b157a

commit 7c7fdd8362a3c871454cb68645171f4f3e4b157a
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Thu Sep 3 00:04:23 2020 +0000

    Update hook configuration.
    
    Update for using new hooks version and to match production repository
    configuration, to start testing the use of the new hooks for GCC.

Diff:
---
 project.config | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++----
 1 file changed, 62 insertions(+), 4 deletions(-)

diff --git a/project.config b/project.config
index 5c21df15da6..a1cbed07750 100644
--- a/project.config
+++ b/project.config
@@ -1,6 +1,6 @@
 [hooks]
 	from-domain = gcc.gnu.org
-	mailinglist = /home/gccadmin/hooks-bin/email_to.py
+	mailinglist = /git/gcc.git/hooks-bin/email_to.py
 
 	# We do not want to force a maximum line length in commit
 	# revision logs, as they get in the way of copy-pasting
@@ -20,12 +20,70 @@
 
 	# The URL where we can inspect the commit, inserted in the commit
 	# notification email, and also copy sent to the file-commit-cmd.
-	commit-url = "https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;h=%(rev)s"
+	commit-url = "https://gcc.gnu.org/g:%(rev)s"
 
 	# This style checker does nothing at present.
-	style-checker = /home/gccadmin/hooks-bin/style_checker
+	style-checker = /git/gcc.git/hooks-bin/style_checker
 
 	# Send a copy to bugzilla if a commit has a PR number in it.
 	# The script is a wrapper around
 	# /sourceware/infra/bin/email-to-bugzilla.
-	file-commit-cmd = "/home/gccadmin/hooks-bin/email-to-bugzilla-filtered"
+	file-commit-cmd = "/git/gcc.git/hooks-bin/email-to-bugzilla-filtered"
+
+	# Work around <https://github.com/AdaCore/git-hooks/issues/9>
+	# to allow larger merges.
+	max-commit-emails = 5000
+
+	# Allow deliberate merges to use the default commit message.
+	# Branches that do not allow merge commits are listed in
+	# reject-merge-commits.
+	disable-merge-commit-checks = true
+
+	# Do not send emails for commits that are already in the
+	# repository being added to development branches or user or
+	# vendor branches (through merges or rebases).
+	email-new-commits-only = refs/heads/devel/.*
+	email-new-commits-only = refs/users/.*
+	email-new-commits-only = refs/vendors/.*
+
+	# GCC-specific ref naming conventions for user and vendor
+	# branches.
+	branch-ref-namespace = refs/users/[^/]*/heads/.*
+	branch-ref-namespace = refs/vendors/[^/]*/heads/.*
+
+	# GCC-specific ref naming conventions for user and vendor
+	# tags.
+	tag-ref-namespace = refs/users/[^/]*/tags/.*
+	tag-ref-namespace = refs/vendors/[^/]*/tags/.*
+
+	# Branch deletion is disabled by default.
+	restrict-branch-deletion = true
+
+	# Branch deletion is allowed for user and vendor branches.
+	allow-delete-branch = refs/users/[^/]*/heads/.*
+	allow-delete-branch = refs/vendors/[^/]*/heads/.*
+
+	# Message to give for rejected branch deletion.
+	rejected-branch-deletion-tip = Branch deletion is only allowed for user and vendor branches.  If another branch was created by mistake, contact an administrator to delete it on the server with git update-ref.  If a development branch is dead, also contact an administrator to move it under refs/dead/heads/ rather than deleting it.
+
+	# Commit messages should not be restricted to ISO-8859-15.
+	no-rh-character-range-check = true
+
+	# Custom checker script for each new commit of each ref being
+	# updated.  This makes several checks on the commit message,
+	# including for ChangeLog formatting and contents.
+	commit-extra-checker = /git/gcc.git/hooks-bin/commit_checker
+
+	# Custom checker script for ref updates.  This checks for
+	# branch naming conventions and not introducing new references
+	# to the git-svn history.
+	update-hook = /git/gcc.git/hooks-bin/update_hook
+
+	# Custom email formatter.  This inserts GCC monotonically
+	# increasing commit ids in the commit emails.
+	commit-email-formatter = /git/gcc.git/hooks-bin/commit_email_formatter
+
+	# Non-fast-forward updates are allowed in the user and vendor
+	# namespaces.
+	allow-non-fast-forward = refs/users/.*
+	allow-non-fast-forward = refs/vendors/.*


More information about the Gcc-cvs mailing list