From: Richard Purdie Date: Fri, 13 May 2022 16:54:27 +0000 (+0100) Subject: scripts/patchreview: Add commit to stored json data X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~4047 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da761ac1984ee2a06ded905fc4ad878ef7d613e4;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git scripts/patchreview: Add commit to stored json data Save commit data when writing to the json file so the results can be copared/extended later. Signed-off-by: Richard Purdie --- diff --git a/scripts/contrib/patchreview.py b/scripts/contrib/patchreview.py index dc417b4c55b..002991c559c 100755 --- a/scripts/contrib/patchreview.py +++ b/scripts/contrib/patchreview.py @@ -222,6 +222,7 @@ if __name__ == "__main__": row = collections.Counter() row["total"] = len(results) row["date"] = subprocess.check_output(["git", "-C", args.directory, "show", "-s", "--pretty=format:%cd", "--date=format:%s"]).decode("utf-8").strip() + row["commit"] = subprocess.check_output(["git", "-C", args.directory, "show", "-s", "--pretty=format:%H"]).decode("utf-8").strip() for r in results.values(): if r.upstream_status in status_values: row[r.upstream_status] += 1