patman: Support checking for review tags in patchwork
authorSimon Glass <sjg@chromium.org>
Fri, 30 Oct 2020 03:46:35 +0000 (21:46 -0600)
committerSimon Glass <sjg@chromium.org>
Thu, 5 Nov 2020 16:11:31 +0000 (09:11 -0700)
commitdc6df972c9ee2afefd937bee3771865012daccef
tree20343d5ae78a420010b60d482dba8e04171a03c1
parentbe051c0c7741d67f5093f6b61b64c45eb200235b
patman: Support checking for review tags in patchwork

Before sending out a new version of a series for review, it is important
to add any review tags (e.g. Reviewed-by, Acked-by) collected by
patchwork. Otherwise people waste time reviewing the same patch
repeatedly, become frustrated and stop reviewing your patches.

To help with this, add a new 'status' subcommand that checks patchwork
for review tags, showing those which are not present in the local branch.

This allows users to see what new review tags have been received and then
add them.

Sample output:
   $ patman status
     1 Subject 1
Reviewed-by: Joe Bloggs <joe@napierwallies.co.nz>
     2 Subject 2
Tested-by: Lord Edmund Blackaddër <weasel@blackadder.org>
Reviewed-by: Fred Bloggs <f.bloggs@napier.net>
     + Reviewed-by: Mary Bloggs <mary@napierwallies.co.nz>
   1 new response available in patchwork

The '+' indicates a new tag. Colours are used to make it easier to read.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/patman/README
tools/patman/control.py
tools/patman/func_test.py
tools/patman/main.py
tools/patman/status.py [new file with mode: 0644]
tools/patman/terminal.py