summaryrefslogtreecommitdiff
path: root/tools/patman/patchstream.py
diff options
context:
space:
mode:
authorSimon Glass <[email protected]>2020-10-29 21:46:38 -0600
committerSimon Glass <[email protected]>2020-11-05 09:11:31 -0700
commitdc4b2a9770b5b932cd6d98c33ebff6dc46de6849 (patch)
tree9f4ffd9d309709ed2e134cea3609821350f98ed5 /tools/patman/patchstream.py
parent6b3252e230a1b8ba763883a79906d69b9aa50415 (diff)
patman: Support listing comments from patchwork
While reviewing feedback it is helpful to see the review comments on the command line to check that each has been addressed. Add an option to support that. Update the workflow documentation to describe the new features. Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'tools/patman/patchstream.py')
-rw-r--r--tools/patman/patchstream.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/patman/patchstream.py b/tools/patman/patchstream.py
index c165bc18251..772e4b56617 100644
--- a/tools/patman/patchstream.py
+++ b/tools/patman/patchstream.py
@@ -89,11 +89,12 @@ class PatchStream:
self.blank_count = 0 # Number of blank lines stored up
self.state = STATE_MSG_HEADER # What state are we in?
self.commit = None # Current commit
- self.snippets = [] # List of unquoted test blocks
+ # List of unquoted test blocks, each a list of str lines
+ self.snippets = []
self.cur_diff = None # Last 'diff' line seen (str)
self.cur_line = None # Last context (@@) line seen (str)
- self.recent_diff= None # 'diff' line for current snippet (str)
- self.recent_line= None # '@@' line for current snippet (str)
+ self.recent_diff = None # 'diff' line for current snippet (str)
+ self.recent_line = None # '@@' line for current snippet (str)
self.recent_quoted = collections.deque([], 5)
self.recent_unquoted = queue.Queue()
self.was_quoted = None