]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
patman: Add more information to Patch
authorSimon Glass <sjg@chromium.org>
Tue, 29 Apr 2025 13:22:22 +0000 (07:22 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 27 May 2025 09:07:41 +0000 (10:07 +0100)
The cover letter has some information on each patch, so allow this to be
stored in the Patch object.

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

index 3ec266f073eb28349b95f2293f4ab0fd99163d09..8b0968c5765ad942513d9fcf726738b678b23a40 100644 (file)
@@ -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):