summaryrefslogtreecommitdiffstats
path: root/extras/scripts/list_api_changes.py
blob: 9e80925b2aa2e2177bf8c1d3918120ad7dc7eb02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env python
import os, fnmatch, subprocess
starttag = 'v18.01-rc0'
endtag = 'v18.01-rc2'
apifiles = []
for root, dirnames, filenames in os.walk('.'):
    for filename in fnmatch.filter(filenames, '*.api'):
        apifiles.append(os.path.join(root, filename))
for f in apifiles:
    commits = subprocess.check_output(['git', 'log',
                                       '--oneline', starttag + '..' + endtag,
                                       f])
    if commits:
        print f
        print commits