Merge "Merge branch 'stable-2.14' into stable-2.15" into stable-2.15

This commit is contained in:
David Pursehouse
2017-10-03 11:06:52 +00:00
committed by Gerrit Code Review

View File

@@ -191,12 +191,7 @@ public class GetDiff implements RestReadView<FileResource> {
ProjectState state = projectCache.get(resource.getRevision().getChange().getProject());
DiffInfo result = new DiffInfo();
// TODO referring to the parent commit by refs/changes/12/60012/1^1
// will likely not work for inline edits
String revA =
basePatchSet != null
? basePatchSet.getRefName()
: resource.getRevision().getPatchSet().getRefName() + "^1";
String revA = basePatchSet != null ? basePatchSet.getRefName() : content.commitIdA;
String revB =
resource.getRevision().getEdit().isPresent()
? resource.getRevision().getEdit().get().getRefName()