scripts: rfr: Remove duplicate subjects

The commit subject is printed implicitly in the commit message
so remove the subject from the header generated by `rfr'.

Also delete a debug line that got left over accidentally.

Change-Id: Ia7fe704182d87504c5794ad4661d8dd2f14bc51f
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1558431
Reviewed-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
This commit is contained in:
Alex Waterman
2017-09-12 12:51:24 -07:00
committed by Aron Wong
parent 725968bf0f
commit 980bf96bf2

View File

@@ -174,7 +174,6 @@ Thanks!
cmt_template = """ cmt_template = """
+---------------------------------------- +----------------------------------------
| {url} | {url}
| {subject}
| Author: {author} | Author: {author}
{cmtmsg}""" {cmtmsg}"""
@@ -186,7 +185,6 @@ Thanks!
cmt_descriptions = '' cmt_descriptions = ''
for c in commits_info: for c in commits_info:
cmt_descriptions += " %s - %s\n" % (c['url'], c['subject']) cmt_descriptions += " %s - %s\n" % (c['url'], c['subject'])
print(cmt_descriptions)
# Add new lines around the extra_message, if applicable. Otherwise we don't # Add new lines around the extra_message, if applicable. Otherwise we don't
# want anything to show up for extra_message. # want anything to show up for extra_message.
@@ -197,7 +195,7 @@ Thanks!
cmt_verbose = '' cmt_verbose = ''
for c in commits_info: for c in commits_info:
cmt_verbose += cmt_template.format(url=c['url'], subject=c['subject'], cmt_verbose += cmt_template.format(url=c['url'],
author=c['owner']['name'], author=c['owner']['name'],
cmtmsg=indent_lines( cmtmsg=indent_lines(
c['commitMessage'], ' ')) c['commitMessage'], ' '))