public void clear(final WCPaths info, final String branchPath) { final String currentUrl = info.getRootUrl(); final MyCurrentUrlData rootMapping = myState.getCurrentUrlMapping().get(currentUrl); if (rootMapping != null) { final BranchInfo mergeChecker = rootMapping.getBranchInfo(branchPath); if (mergeChecker != null) { mergeChecker.clear(); } } }
@Nullable public MergeinfoCached getCachedState(final WCPaths info, final String branchPath) { final String currentUrl = info.getRootUrl(); MyCurrentUrlData rootMapping = myState.getCurrentUrlMapping().get(currentUrl); if (rootMapping != null) { final BranchInfo branchInfo = rootMapping.getBranchInfo(branchPath); if (branchInfo != null) { return branchInfo.getCached(); } } return null; }