void (boolean onSwapSides) { if (myCompareInfo == null) return; boolean swapSides = myVcsSettings.shouldSwapSidesInCompareBranches(); updateLabelText(); List<Change> diff = myCompareInfo.getTotalDiff(); if (swapSides) diff = DvcsBranchUtil.swapRevisions(diff); if (onSwapSides) { myChangesBrowser.setChangesToDisplay(diff, new OnSwapSidesTreeStateStrategy()); } else { myChangesBrowser.setChangesToDisplay(diff); } }