summaryrefslogtreecommitdiffstats
path: root/scripts
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:38 +0100
commita0d120dd56330a7e0f5705812f86736fffc83fa7 (patch)
tree08f285d0fbd09ac553a19c3c3293c5e62f6eb2d6 /scripts
parentfdda6460c0821b194fd93baed9d2affbb6d4035b (diff)
downloadpoky-a0d120dd56330a7e0f5705812f86736fffc83fa7.tar.gz
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. (From OE-Core rev: da761ac1984ee2a06ded905fc4ad878ef7d613e4) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-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__":
222 row = collections.Counter() 222 row = collections.Counter()
223 row["total"] = len(results) 223 row["total"] = len(results)
224 row["date"] = subprocess.check_output(["git", "-C", args.directory, "show", "-s", "--pretty=format:%cd", "--date=format:%s"]).decode("utf-8").strip() 224 row["date"] = subprocess.check_output(["git", "-C", args.directory, "show", "-s", "--pretty=format:%cd", "--date=format:%s"]).decode("utf-8").strip()
225 row["commit"] = subprocess.check_output(["git", "-C", args.directory, "show", "-s", "--pretty=format:%H"]).decode("utf-8").strip()
225 for r in results.values(): 226 for r in results.values():
226 if r.upstream_status in status_values: 227 if r.upstream_status in status_values:
227 row[r.upstream_status] += 1 228 row[r.upstream_status] += 1