public PathInfo getHistory(boolean strictNodeHistory, long start) throws SVNException { FSNodeHistory history = null; if (myHistory != null) { history = myHistory.getPreviousHistory(strictNodeHistory ? false : true); myHistory = history; } else { FSRevisionRoot historyRoot = myFSFS.createRevisionRoot(myHistoryRevision); history = historyRoot.getNodeHistory(myPath); history = history.getPreviousHistory(strictNodeHistory ? false : true); if (myIsFirstTime) { myIsFirstTime = false; } else if (history != null) { history = history.getPreviousHistory(strictNodeHistory ? false : true); } } if (history == null) { myIsDone = true; return this; } myPath = history.getHistoryEntry().getPath(); myHistoryRevision = history.getHistoryEntry().getRevision(); if (myHistoryRevision < start) { myIsDone = true; } return this; }
public PathInfo getHistory(boolean strictNodeHistory, long start) throws SVNException { FSNodeHistory history = null; if (myHistory != null) { history = myHistory.getPreviousHistory(strictNodeHistory ? false : true); myHistory = history; } else { FSRevisionRoot historyRoot = myFSFS.createRevisionRoot(myHistoryRevision); history = historyRoot.getNodeHistory(myPath); history = history.getPreviousHistory(strictNodeHistory ? false : true); if (myIsFirstTime) { myIsFirstTime = false; } else if (history != null) { history = history.getPreviousHistory(strictNodeHistory ? false : true); } } if (history == null) { myIsDone = true; return this; } myPath = history.getHistoryEntry().getPath(); myHistoryRevision = history.getHistoryEntry().getRevision(); if (myHistoryRevision < start) { myIsDone = true; } return this; }
public PathInfo getHistory(boolean strictNodeHistory, long start) throws SVNException { FSNodeHistory history = null; if (myHistory != null) { history = myHistory.getPreviousHistory(strictNodeHistory ? false : true); myHistory = history; } else { FSRevisionRoot historyRoot = myFSFS.createRevisionRoot(myHistoryRevision); history = historyRoot.getNodeHistory(myPath); history = history.getPreviousHistory(strictNodeHistory ? false : true); if (myIsFirstTime) { myIsFirstTime = false; } else if (history != null) { history = history.getPreviousHistory(strictNodeHistory ? false : true); } } if (history == null) { myIsDone = true; return this; } myPath = history.getHistoryEntry().getPath(); myHistoryRevision = history.getHistoryEntry().getRevision(); if (myHistoryRevision < start) { myIsDone = true; } return this; }
FSNodeHistory history = root.getNodeHistory(path); while (true) { history = history.getPreviousHistory(true); if (history == null) { break;
FSNodeHistory history = root.getNodeHistory(path); while (true) { history = history.getPreviousHistory(true); if (history == null) { break;
FSNodeHistory history = root.getNodeHistory(path); while (true) { history = history.getPreviousHistory(true); if (history == null) { break;
public static boolean checkAncestryOfPegPath(String fsPath, long pegRev, long futureRev, FSFS owner) throws SVNException { FSRevisionRoot root = owner.createRevisionRoot(futureRev); FSNodeHistory history = root.getNodeHistory(fsPath);//getNodeHistory(root, fsPath); fsPath = null; SVNLocationEntry currentHistory = null; while (true) { history = history.getPreviousHistory(true); if (history == null) { break; } currentHistory = new SVNLocationEntry(history.getHistoryEntry().getRevision(), history.getHistoryEntry().getPath()); if (fsPath == null) { fsPath = currentHistory.getPath(); } if (currentHistory.getRevision() <= pegRev) { break; } } if (fsPath == null) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.UNKNOWN, "FATAL error occurred while checking ancestry of peg path"); SVNErrorManager.error(err, SVNLogType.FSFS); } return (history != null && (fsPath.equals(currentHistory.getPath()))); }
public static boolean checkAncestryOfPegPath(String fsPath, long pegRev, long futureRev, FSFS owner) throws SVNException { FSRevisionRoot root = owner.createRevisionRoot(futureRev); FSNodeHistory history = root.getNodeHistory(fsPath);//getNodeHistory(root, fsPath); fsPath = null; SVNLocationEntry currentHistory = null; while (true) { history = history.getPreviousHistory(true); if (history == null) { break; } currentHistory = new SVNLocationEntry(history.getHistoryEntry().getRevision(), history.getHistoryEntry().getPath()); if (fsPath == null) { fsPath = currentHistory.getPath(); } if (currentHistory.getRevision() <= pegRev) { break; } } if (fsPath == null) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.UNKNOWN, "FATAL error occurred while checking ancestry of peg path"); SVNErrorManager.error(err, SVNLogType.FSFS); } return (history != null && (fsPath.equals(currentHistory.getPath()))); }
public static boolean checkAncestryOfPegPath(String fsPath, long pegRev, long futureRev, FSFS owner) throws SVNException { FSRevisionRoot root = owner.createRevisionRoot(futureRev); FSNodeHistory history = root.getNodeHistory(fsPath);//getNodeHistory(root, fsPath); fsPath = null; SVNLocationEntry currentHistory = null; while (true) { history = history.getPreviousHistory(true); if (history == null) { break; } currentHistory = new SVNLocationEntry(history.getHistoryEntry().getRevision(), history.getHistoryEntry().getPath()); if (fsPath == null) { fsPath = currentHistory.getPath(); } if (currentHistory.getRevision() <= pegRev) { break; } } if (fsPath == null) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.UNKNOWN, "FATAL error occurred while checking ancestry of peg path"); SVNErrorManager.error(err, SVNLogType.FSFS); } return (history != null && (fsPath.equals(currentHistory.getPath()))); }
try { history = root.getNodeHistory(path); history = history.getPreviousHistory(false); historyRev = history.getHistoryEntry().getRevision(); } catch (SVNException svne) {
long count = 0; do { history = history.getPreviousHistory(crossCopies); if (history == null) { break;
long count = 0; do { history = history.getPreviousHistory(crossCopies); if (history == null) { break;
long count = 0; do { history = history.getPreviousHistory(crossCopies); if (history == null) { break;