summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorThorsten Behrens <Thorsten.Behrens@CIB.de>2020-06-04 23:03:31 +0200
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2020-06-05 01:14:34 +0200
commit75e1cf6c6ea83e65da248dab917b06feea6c18e4 (patch)
tree26d18345ba064b2da62978d51e7884915346a291 /bin
parentd2e428d1abb9f2907c0b87d55830e8742f8209b9 (diff)
Battle-harden ODF implementer notes script
- make sure multiple commit hashes per line are all extracted - adjust cut-off date to May 18th, when Michael had finished adding missing implementer notes Change-Id: Ieb689442369792d701762d4325c73f17d2f3f703 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95541 Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/check-implementer-notes.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/check-implementer-notes.py b/bin/check-implementer-notes.py
index 378c16a6e933..10b7c168ba0e 100755
--- a/bin/check-implementer-notes.py
+++ b/bin/check-implementer-notes.py
@@ -11,7 +11,7 @@ wiki_pages = [
# get all commit hashes mentioned in implementer notes
wiki_commit_hashes = {}
-query = re.compile('\{\{commit\|(\\w+).*\}\}', re.IGNORECASE)
+query = re.compile('\{\{commit\|(\\w+)\|\\w*\|\\w*\}\}', re.IGNORECASE)
for page in wiki_pages:
r = http.request('GET', page)
data = json.loads(r.data.decode('utf-8'))
@@ -21,10 +21,10 @@ for page in wiki_pages:
# get all commits that change core/schema/* - and are _not_ mentioned
# in the wiki page
-# Cut-off is Jan 1st 2020, when we started cleaning this up
+# Cut-off is May 18th 2020, when Michael Stahl had finished cleaning this up
for commit in subprocess.check_output(
['git', '--no-pager', '-C', sys.path[0]+'/..', 'log',
- '--since=2020-01-01', '--format=%H', '--', 'schema/'],
+ '--since=2020-05-18', '--format=%H', '--', 'schema/'],
stderr=subprocess.STDOUT).decode("utf-8").split("\n"):
if commit != '' and commit not in wiki_commit_hashes:
print('missing commit: %s' % commit)