Mercurial > hg-stable
changeset 28012:897b2fcf079f
check-commit: scan for multiple instances of error patterns
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Fri, 05 Feb 2016 16:52:02 -0600 |
parents | 8abd9f785030 |
children | e529b5f1b9e3 |
files | contrib/check-commit |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/check-commit Fri Feb 05 10:22:14 2016 -0800 +++ b/contrib/check-commit Fri Feb 05 16:52:02 2016 -0600 @@ -50,8 +50,7 @@ printed = node is None hits = [] for exp, msg in errors: - m = re.search(exp, commit) - if m: + for m in re.finditer(exp, commit): end = m.end() trailing = re.search(r'(\\n)+$', exp) if trailing: