Make commit and patchset comments nicer

Rather than display the /PATCHSET_LEVEL and /COMMIT_MSG fake
filenames, translate those to nice strings like the web ui does.

Change-Id: I225c8e2ea9763f9dadbefc4a23329efe0f97d899
This commit is contained in:
James E. Blair 2021-08-24 09:41:20 -07:00
parent 3e3964294c
commit cd790093f7
1 changed files with 4 additions and 0 deletions

View File

@ -494,6 +494,10 @@ class ChangeMessageBox(mywid.HyperText):
if inline_comments:
comment_text.append(u'\n')
for key, value in inline_comments.items():
if key == '/PATCHSET_LEVEL':
key = 'Patchset'
if key == '/COMMIT_MSG':
key = 'Commit message'
comment_text.append(('filename-inline-comment', u'%s' % key))
for patchset, line, comment in value:
location_str = ''