Implement web interface for patches diff
Support diff between patches in the change screen. Allow changing patches base comparison. All displayed patches can now have their files listed and compared to target branch or to a specific patch of the change. Bug issue: 194 Change-Id: I617cbe647338b8a4fb71788f04ab6e2c952780fc
This commit is contained in:
committed by
Shawn O. Pearce
parent
283a13df29
commit
237174c276
@@ -156,16 +156,15 @@ public abstract class PatchScreen extends Screen implements
|
||||
patchSetDetail = detail;
|
||||
fileList = patchTable;
|
||||
|
||||
// If we have any diff side stored, make sure they are applicable to the
|
||||
// current change, discard them otherwise.
|
||||
//
|
||||
Change.Id thisChangeId = id.getParentKey().getParentKey();
|
||||
if (currentChangeId != null && !currentChangeId.equals(thisChangeId)) {
|
||||
if (patchTable != null) {
|
||||
diffSideA = patchTable.getPatchSetIdToCompareWith();
|
||||
} else {
|
||||
diffSideA = null;
|
||||
diffSideB = null;
|
||||
}
|
||||
if (diffSideA == null) {
|
||||
historyOpen = null;
|
||||
}
|
||||
currentChangeId = thisChangeId;
|
||||
|
||||
idSideA = diffSideA; // null here means we're diff'ing from the Base
|
||||
idSideB = diffSideB != null ? diffSideB : id.getParentKey();
|
||||
this.patchIndex = patchIndex;
|
||||
|
||||
Reference in New Issue
Block a user