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:
parent
3e3964294c
commit
cd790093f7
|
@ -494,6 +494,10 @@ class ChangeMessageBox(mywid.HyperText):
|
||||||
if inline_comments:
|
if inline_comments:
|
||||||
comment_text.append(u'\n')
|
comment_text.append(u'\n')
|
||||||
for key, value in inline_comments.items():
|
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))
|
comment_text.append(('filename-inline-comment', u'%s' % key))
|
||||||
for patchset, line, comment in value:
|
for patchset, line, comment in value:
|
||||||
location_str = ''
|
location_str = ''
|
||||||
|
|
Loading…
Reference in New Issue