# HG changeset patch # User Pierre-Yves David # Date 2015-04-12 18:54:53 # Node ID 868cec6409c42d7a14960ac54f70fcf8c4c33abf # Parent 2b044925580057148784a819cafa010297127bf5 check-commit: be more picky about detection of wrong bug tag The check-commit script search for "bug" withing bracket and ask people to use (issueXXXX) instead. The test was too wide and matching any "(+b+u+g"sequence. diff --git a/contrib/check-commit b/contrib/check-commit --- a/contrib/check-commit +++ b/contrib/check-commit @@ -20,7 +20,7 @@ import re, sys, os errors = [ (r"[(]bc[)]", "(BC) needs to be uppercase"), (r"[(]issue \d\d\d", "no space allowed between issue and number"), - (r"[(]bug", "use (issueDDDD) instead of bug"), + (r"[(]bug(\d|\s)", "use (issueDDDD) instead of bug"), (r"^# User [^@\n]+$", "username is not an email address"), (r"^# .*\n(?!merge with )[^#]\S+[^:] ", "summary line doesn't start with 'topic: '"),