Mercurial > hg
diff contrib/check-commit @ 30843:2fb3ae89e4e1 stable
contrib: fix check-commit to not reject commits from `hg sign` and `hg tag`
I'm tired of having a spurious red build every time we do a
release. Fix it once and for all.
author | Augie Fackler <augie@google.com> |
---|---|
date | Wed, 18 Jan 2017 23:34:35 -0500 |
parents | 8e805cf27caa |
children | 47084b5ffd80 |
line wrap: on
line diff
--- a/contrib/check-commit Wed Jan 18 20:03:00 2017 -0500 +++ b/contrib/check-commit Wed Jan 18 23:34:35 2017 -0500 @@ -59,6 +59,10 @@ exitcode = 0 printed = node is None hits = [] + signtag = (afterheader + + r'Added (tag [^ ]+|signature) for changeset [a-f0-9]{12}') + if re.search(signtag, commit): + return 0 for exp, msg in errors: for m in re.finditer(exp, commit): end = m.end()