コード例 #1
0
 @NotNull
 @Override
 public Set<CommitId> getContainingBranches(@NotNull CommitId commit) {
   int commitIndex = myPermanentCommitsInfo.getNodeId(commit);
   return myPermanentCommitsInfo.convertToCommitIdSet(
       myReachableNodes.getContainingBranches(commitIndex, myBranchNodeIds));
 }
コード例 #2
0
 @NotNull
 @Override
 public List<CommitId> getChildren(@NotNull CommitId commit) {
   int commitIndex = myPermanentCommitsInfo.getNodeId(commit);
   return myPermanentCommitsInfo.convertToCommitIdList(
       LinearGraphUtils.getUpNodes(myPermanentLinearGraph, commitIndex));
 }