[vcs-log] fix branch filter

This commit is contained in:
Julia Beliaeva
2016-09-20 00:15:17 +03:00
parent 13d2a10947
commit ca1069c3e8
@@ -108,9 +108,14 @@ public class PermanentGraphImpl<CommitId> implements PermanentGraph<CommitId>, P
baseController = new BekBaseController(this, myBekIntMap.get());
}
LinearGraphController controller;
// TODO this code is unclear and obviously needs some refactoring
// I'll leave it for later to reorganize, and add some duplication for now, in order just to fix stuff
CascadeController controller;
if (matchingCommits != null) {
controller = new FilteredController(baseController, this, myPermanentCommitsInfo.convertToNodeIds(matchingCommits));
if (visibleHeads != null) {
controller = new BranchFilterController(controller, this, myPermanentCommitsInfo.convertToNodeIds(visibleHeads, true));
}
}
else if (sortType == SortType.LinearBek) {
if (visibleHeads != null) {