patman: Attach warnings to individual patches
authorSimon Glass <sjg@chromium.org>
Fri, 30 Oct 2020 03:46:24 +0000 (21:46 -0600)
committerSimon Glass <sjg@chromium.org>
Thu, 5 Nov 2020 16:11:31 +0000 (09:11 -0700)
commit313ef5f897f15bc7ec2ca8054f4e4871a2f6be93
treebe3546d33bf076ab8363d1e073a38c3dd97eb484
parentb5cc39905343312d1b7064ede72561394049be21
patman: Attach warnings to individual patches

At present warnings are produced across the whole set of patches when
parsing them. It is more useful to associate each warning with the patch
(or commit) that generated it.

Attach warnings to the Commit object and move them out of PatchStream.
Also avoid generating duplicate warnings for the same commit.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/patman/commit.py
tools/patman/patchstream.py