public static boolean checkAncestryOfPegPath(File reposRootDir, String fsPath, long pegRev, long futureRev, FSRevisionNodePool revNodesPool)throws SVNException{ fsPath = fsPath == null ? new String("") : fsPath; long youngestRev = FSReader.getYoungestRevision(reposRootDir); if(FSRepository.isInvalidRevision(pegRev) || pegRev > youngestRev){ return false; } if(FSRepository.isInvalidRevision(futureRev) || futureRev > youngestRev){ return false; } FSRevisionNode root = FSReader.getRootRevNode(reposRootDir, futureRev); FSNodeHistory history = null; history = getNodeHistory(reposRootDir, root, fsPath);
public static boolean checkAncestryOfPegPath(File reposRootDir, String fsPath, long pegRev, long futureRev, FSRevisionNodePool revNodesPool) throws SVNException {  FSRoot root = FSRoot.createRevisionRoot(futureRev, revNodesPool.getRootRevisionNode(futureRev, reposRootDir)); FSNodeHistory history = getNodeHistory(reposRootDir, root, fsPath);
    public static boolean checkAncestryOfPegPath(File reposRootDir, String fsPath, long pegRev, long futureRev, FSRevisionNodePool revNodesPool)throws SVNException{        fsPath = fsPath == null ? new String("") : fsPath;        long youngestRev = FSReader.getYoungestRevision(reposRootDir);        if(FSRepository.isInvalidRevision(pegRev) || pegRev > youngestRev){            return false;        }        if(FSRepository.isInvalidRevision(futureRev) || futureRev > youngestRev){            return false;        }   		FSRevisionNode root = FSReader.getRootRevNode(reposRootDir, futureRev);        FSNodeHistory history = null;        history = getNodeHistory(reposRootDir, root, fsPath);        fsPath = null;   		SVNLocationEntry currentHistory = null;   		while(true){     			history = history.fsHistoryPrev(reposRootDir, true, revNodesPool);    			   			if(history == null){     				break;    			   			}   			currentHistory = new SVNLocationEntry(history.getHistoryEntry().getRevision(), history.getHistoryEntry().getPath()); 		   			if(fsPath == null){   				fsPath = new String(currentHistory.getPath());   			}   			if(currentHistory.getRevision() <= pegRev){   				break;    				   			}   		}   		return (history != null && (fsPath.compareTo(currentHistory.getPath()) == 0));    }