@Nullable private File getLocalPath(final String relativeToRepoPath) { // from source if not inverted final String pathToCheck = SVNPathUtil.append(myWcInfo.getRepositoryRoot(), relativeToRepoPath); final SvnBranchPointsCalculator.BranchCopyData wrapped = myCopyPoint.getWrapped(); final String relativeInSource = SVNPathUtil.getRelativePath( myCopyPoint.isInvertedSense() ? wrapped.getSource() : wrapped.getTarget(), pathToCheck); if (StringUtil.isEmptyOrSpaces(relativeInSource)) return null; final File local = new File(myWcInfo.getPath(), relativeInSource); return local; }