4 # generates an OE changelog for last weeks activity (Mon-Sun) assuming it is run on
5 # any day of the following week
8 # - remove patch count as it does not match after we remove "Merge branch" statements
14 today = datetime.date.today()
17 today_weekday = today.weekday()
19 # find Mon of this week
20 end_day = today - datetime.timedelta(today_weekday)
22 start_day = end_day - datetime.timedelta(7)
24 print "OE weekly changelog %s to %s\n" % (start_day.isoformat(), end_day.isoformat())
26 os.system("git-shortlog --since=%s --until=%s | grep -v \"Merge branch\" | grep -v \"Merge commit\"" % (start_day.isoformat(), end_day.isoformat()))