tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit f46cdb3ff85be4c4241928bfd3f558eb878cff28
parent 9f3d9c68ab21e4856da11580c29f4895bf398a09
Author: Nick Mathewson <nickm@torproject.org>
Date:   Sun,  5 Nov 2017 14:41:39 -0500

lintchanges: Allow 'fixes bugs a, b, and c'

Diffstat:
Mscripts/maint/lintChanges.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/maint/lintChanges.py b/scripts/maint/lintChanges.py @@ -76,13 +76,13 @@ def lintfile(fname): if isBug and not re.search(r'(\d+)', contents): warn("Ticket marked as bugfix, but does not mention a number.") - elif isBug and not re.search(r'Fixes ([a-z ]*)bug (\d+)', contents): + elif isBug and not re.search(r'Fixes ([a-z ]*)bugs? (\d+)', contents): warn("Ticket marked as bugfix, but does not say 'Fixes bug XXX'") if re.search(r'[bB]ug (\d+)', contents): if not re.search(r'[Bb]ugfix on ', contents): warn("Bugfix does not say 'bugfix on X.Y.Z'") - elif not re.search('[fF]ixes ([a-z ]*)bug (\d+); bugfix on ', + elif not re.search('[fF]ixes ([a-z ]*)bugs? (\d+)((, \d+)* and \d+)?; bugfix on ', contents): warn("Bugfix does not say 'Fixes bug X; bugfix on Y'") elif re.search('tor-([0-9]+)', contents):