From: Simon Glass Date: Tue, 29 Apr 2025 13:22:22 +0000 (-0600) Subject: patman: Add more information to Patch X-Git-Tag: v2025.10-rc1~118^2~69^2~56 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0fb0b46200998461fd532ddd928cc0451246bd6a;p=thirdparty%2Fu-boot.git patman: Add more information to Patch The cover letter has some information on each patch, so allow this to be stored in the Patch object. Signed-off-by: Simon Glass --- diff --git a/tools/patman/patchwork.py b/tools/patman/patchwork.py index 3ec266f073e..8b0968c5765 100644 --- a/tools/patman/patchwork.py +++ b/tools/patman/patchwork.py @@ -52,8 +52,10 @@ class Patch(dict): raw_subject (str): Raw patch subject subject (str): Patch subject with [..] part removed (same as commit subject) + data (dict or None): Patch data: """ - def __init__(self, pid): + def __init__(self, pid, state=None, data=None, comments=None, + series_data=None): super().__init__() self.id = pid # Use 'id' to match what the Rest API provides self.seq = None @@ -62,6 +64,11 @@ class Patch(dict): self.version = None self.raw_subject = None self.subject = None + self.state = state + self.data = data + self.comments = comments + self.series_data = series_data + self.name = None # These make us more like a dictionary def __setattr__(self, name, value):