patman: Allow for changelog use in first version of a series
PATCH 1/1 patman: Allow for changelog use in first version of a series
When a patchset had a RFC series, a v1 might have a changelog of changes done since the RFC. The patch changes the range checked for changelog and allow it to start for version 1.
--- tools/patman/series.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
tools/patman/series.py +4 -3
@@ -174,12 +174,13 @@ class Series(dict): col = terminal.Color() if self.get('version'): changes_copy = dict(self.changes) - for version in range(2, int(self.version) + 1): + for version in range(1, int(self.version) + 1): if self.changes.get(version): del changes_copy[version] else: - str = 'Change log missing for v%d' % version - print col.Color(col.RED, str) + if version > 1: + str = 'Change log missing for v%d' % version + print col.Color(col.RED, str) for version in changes_copy: str = 'Change log for unknown version v%d' % version print col.Color(col.RED, str)
Signature · 1 line
1.7.10.4
PATCH 1/1 patman: Allow for changelog use in first version of a series
Quoted 5 lines · Otavio Salvador
When a patchset had a RFC series, a v1 might have a changelog of changes done since the RFC. The patch changes the range checked for changelog and allow it to start for version 1.
Signed-off-by Otavio Salvador <[email protected]>
Quoted 28 lines
--- tools/patman/series.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)tools/patman/series.py +4
-4@@ -174,12 +174,13 @@ class Series(dict): col = terminal.Color() if self.get('version'): changes_copy = dict(self.changes) - for version in range(2, int(self.version) + 1): + for version in range(1, int(self.version) + 1): if self.changes.get(version): del changes_copy[version] else: - str = 'Change log missing for v%d' % version - print col.Color(col.RED, str) + if version > 1: + str = 'Change log missing for v%d' % version + print col.Color(col.RED, str) for version in changes_copy: str = 'Change log for unknown version v%d' % version print col.Color(col.RED, str) --1.7.10.4
Wolfgang Denk
AppliedPATCH 1/1 patman: Allow for changelog use in first version of a series
In reply to Otavio SalvadorDear Otavio Salvador,
Quoted 8 lines · In message <[email protected]> you…
When a patchset had a RFC series, a v1 might have a changelog of changes done since the RFC. The patch changes the range checked for changelog and allow it to start for version 1.
Signed-off-by Otavio Salvador <[email protected]>--- tools/patman/series.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 4 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Never call a man a fool. Borrow from him.