ChangeScreen2: Make diff against revision persistent

2d2a3c405e added diff against to the change
screen2. However base revision is lost when side by side view is closed.

This change fixes that.

Conflicts:
	gerrit-gwtui/src/main/java/com/google/gerrit/client/change/ChangeScreen2.java

Change-Id: I7f74760fde96469a60556f657923a3936d6516c7
This commit is contained in:
David Ostrovsky
2013-11-23 23:57:50 +01:00
committed by Michael Zhou
parent bdcb9cff23
commit e786675f23
5 changed files with 79 additions and 14 deletions

View File

@@ -80,6 +80,7 @@ class Header extends Composite {
SafeHtml.setInnerHTML(filePath, formatPath(path));
up.setTargetHistoryToken(PageLinks.toChange(
patchSetId.getParentKey(),
base != null ? String.valueOf(base.get()) : null,
String.valueOf(patchSetId.get())));
}