summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2017-09-12 15:51:24 -0400
committerAron Wong <awong@nvidia.com>2017-09-13 19:08:31 -0400
commit980bf96bf21868e9b1fd8c1ef68da534e97ccbb5 (patch)
treedd82a7f3bdacc44f9833a9f4bedbb9e4bb021229 /scripts
parent725968bf0f3f2a1fc5b4def0a53a509ef1b4324d (diff)
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>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/rfr4
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/rfr b/scripts/rfr
index 1b12a9ce..723fde51 100755
--- a/scripts/rfr
+++ b/scripts/rfr
@@ -174,7 +174,6 @@ Thanks!
174 cmt_template = """ 174 cmt_template = """
175+---------------------------------------- 175+----------------------------------------
176| {url} 176| {url}
177| {subject}
178| Author: {author} 177| Author: {author}
179 178
180{cmtmsg}""" 179{cmtmsg}"""
@@ -186,7 +185,6 @@ Thanks!
186 cmt_descriptions = '' 185 cmt_descriptions = ''
187 for c in commits_info: 186 for c in commits_info:
188 cmt_descriptions += " %s - %s\n" % (c['url'], c['subject']) 187 cmt_descriptions += " %s - %s\n" % (c['url'], c['subject'])
189 print(cmt_descriptions)
190 188
191 # Add new lines around the extra_message, if applicable. Otherwise we don't 189 # Add new lines around the extra_message, if applicable. Otherwise we don't
192 # want anything to show up for extra_message. 190 # want anything to show up for extra_message.
@@ -197,7 +195,7 @@ Thanks!
197 195
198 cmt_verbose = '' 196 cmt_verbose = ''
199 for c in commits_info: 197 for c in commits_info:
200 cmt_verbose += cmt_template.format(url=c['url'], subject=c['subject'], 198 cmt_verbose += cmt_template.format(url=c['url'],
201 author=c['owner']['name'], 199 author=c['owner']['name'],
202 cmtmsg=indent_lines( 200 cmtmsg=indent_lines(
203 c['commitMessage'], ' ')) 201 c['commitMessage'], ' '))