From: Patrick Delaunay Date: Thu, 2 Jul 2020 17:52:54 +0000 (+0200) Subject: Add information for skipped commit options X-Git-Tag: v2020.10~98^2~23 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e5ff9ab70a0409b1a3d263de7346f46568565ba5;p=platform%2Fkernel%2Fu-boot.git Add information for skipped commit options The unsupported Commit-xxx option are silently skipped and removed as 're_remove=Commit-\w*', this patch adds warning message in this case to detect misspelled issue for the 2 supported options: Commit-notes: Commit-changes: For example: the final 's' is missing (Commit-note:) NB: no issue for Series-xxx option as only the supported options are accepted (see valid_series in series.py) Signed-off-by: Patrick Delaunay Reviewed-by: Simon Glass --- diff --git a/tools/patman/patchstream.py b/tools/patman/patchstream.py index 70acb09..ba0a13f 100644 --- a/tools/patman/patchstream.py +++ b/tools/patman/patchstream.py @@ -351,6 +351,9 @@ class PatchStream: elif name == 'changes': self.in_change = 'Commit' self.change_version = self.ParseVersion(value, line) + else: + self.warn.append('Line %d: Ignoring Commit-%s' % + (self.linenum, name)) # Detect the start of a new commit elif commit_match: