aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2022-05-13 17:54:27 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-05-23 14:00:24 +0100
commitda761ac1984ee2a06ded905fc4ad878ef7d613e4 (patch)
tree92735ced3cee2b4faca65c51110e9f978f79c4b3
parent2b9bb4c07d0ab53f58cbdd8a96896780a90be9a8 (diff)
downloadopenembedded-core-contrib-da761ac1984ee2a06ded905fc4ad878ef7d613e4.tar.gz
openembedded-core-contrib-da761ac1984ee2a06ded905fc4ad878ef7d613e4.tar.bz2
openembedded-core-contrib-da761ac1984ee2a06ded905fc4ad878ef7d613e4.zip
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 <richard.purdie@linuxfoundation.org>
-rwxr-xr-xscripts/contrib/patchreview.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/contrib/patchreview.py b/scripts/contrib/patchreview.py
index dc417b4c55..002991c559 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