public FSNodeHistory fsHistoryPrev(boolean crossCopies, FSFS owner) throws SVNException { if ("/".equals(historyEntry.getPath())) { if (!isInteresting) { return new FSNodeHistory(new SVNLocationEntry(historyEntry.getRevision(), "/"), true, new SVNLocationEntry(FSRepository.SVN_INVALID_REVNUM, null)); } else if (historyEntry.getRevision() > 0) { return new FSNodeHistory(new SVNLocationEntry(historyEntry.getRevision() - 1, "/"), true, new SVNLocationEntry(FSRepository.SVN_INVALID_REVNUM, null)); } } else { FSNodeHistory prevHist = this; while (true) { prevHist = prevHist.historyPrev(crossCopies, owner); if (prevHist == null) { return null; } if (prevHist.isInteresting) { return prevHist; } } } return null; } }
public FSNodeHistory getPreviousHistory(boolean crossCopies) throws SVNException { if ("/".equals(myHistoryEntry.getPath())) { if (!myIsInteresting) { return new FSNodeHistory(new SVNLocationEntry(myHistoryEntry.getRevision(), "/"), true, new SVNLocationEntry(SVNRepository.INVALID_REVISION, null), myFSFS); } else if (myHistoryEntry.getRevision() > 0) { return new FSNodeHistory(new SVNLocationEntry(myHistoryEntry.getRevision() - 1, "/"), true, new SVNLocationEntry(SVNRepository.INVALID_REVISION, null), myFSFS); } } else { FSNodeHistory prevHist = this; while (true) { prevHist = prevHist.historyPrev(crossCopies); if (prevHist == null) { return null; } if (prevHist.myIsInteresting) { return prevHist; } } } return null; } }
public FSNodeHistory getPreviousHistory(boolean crossCopies) throws SVNException { if ("/".equals(myHistoryEntry.getPath())) { if (!myIsInteresting) { return new FSNodeHistory(new SVNLocationEntry(myHistoryEntry.getRevision(), "/"), true, new SVNLocationEntry(SVNRepository.INVALID_REVISION, null), myFSFS); } else if (myHistoryEntry.getRevision() > 0) { return new FSNodeHistory(new SVNLocationEntry(myHistoryEntry.getRevision() - 1, "/"), true, new SVNLocationEntry(SVNRepository.INVALID_REVISION, null), myFSFS); } } else { FSNodeHistory prevHist = this; while (true) { prevHist = prevHist.historyPrev(crossCopies); if (prevHist == null) { return null; } if (prevHist.myIsInteresting) { return prevHist; } } } return null; } }
public FSNodeHistory getPreviousHistory(boolean crossCopies) throws SVNException { if ("/".equals(myHistoryEntry.getPath())) { if (!myIsInteresting) { return new FSNodeHistory(new SVNLocationEntry(myHistoryEntry.getRevision(), "/"), true, new SVNLocationEntry(SVNRepository.INVALID_REVISION, null), myFSFS); } else if (myHistoryEntry.getRevision() > 0) { return new FSNodeHistory(new SVNLocationEntry(myHistoryEntry.getRevision() - 1, "/"), true, new SVNLocationEntry(SVNRepository.INVALID_REVISION, null), myFSFS); } } else { FSNodeHistory prevHist = this; while (true) { prevHist = prevHist.historyPrev(crossCopies); if (prevHist == null) { return null; } if (prevHist.myIsInteresting) { return prevHist; } } } return null; } }