Don't format webLinks for parent commits
Post fd6b981437
("Don't show
PatchSetWebLink for parent commits") the web UI does not use patch
set web links for the parent commits. These are parent commits,
they are not necessarily a patch set under review, and should not
get links formatted by the PatchSetWebLinks.
Change-Id: Ib2babb8a4c9599fda1d6282cb0c6efdc349c0ae5
This commit is contained in:
@@ -1004,11 +1004,6 @@ public class ChangeJson {
|
||||
CommitInfo i = new CommitInfo();
|
||||
i.commit = parent.name();
|
||||
i.subject = parent.getShortMessage();
|
||||
if (addLinks) {
|
||||
FluentIterable<WebLinkInfo> parentLinks =
|
||||
webLinks.getPatchSetLinks(project, parent.name());
|
||||
i.webLinks = parentLinks.isEmpty() ? null : parentLinks.toList();
|
||||
}
|
||||
info.parents.add(i);
|
||||
}
|
||||
return info;
|
||||
|
Reference in New Issue
Block a user