private PathInfo[] getPathHistories(String[] paths, long start, long end, boolean strictNodeHistory) throws SVNException { PathInfo[] histories = new PathInfo[paths.length]; FSRevisionRoot root = myFSFS.createRevisionRoot(end); for (int i = 0; i < paths.length; i++) { String path = paths[i]; PathInfo pathHistory = new PathInfo(); pathHistory.myPath = path; pathHistory.myHistoryRevision = end; pathHistory.myIsDone = false; pathHistory.myIsFirstTime = true; if (i < MAX_OPEN_HISTORIES) { pathHistory.myHistory = root.getNodeHistory(path); } histories[i] = pathHistory.getHistory(strictNodeHistory, start); } return histories; }
private PathInfo[] getPathHistories(String[] paths, long start, long end, boolean strictNodeHistory) throws SVNException { PathInfo[] histories = new PathInfo[paths.length]; FSRevisionRoot root = myFSFS.createRevisionRoot(end); for (int i = 0; i < paths.length; i++) { String path = paths[i]; PathInfo pathHistory = new PathInfo(); pathHistory.myPath = path; pathHistory.myHistoryRevision = end; pathHistory.myIsDone = false; pathHistory.myIsFirstTime = true; if (i < MAX_OPEN_HISTORIES) { pathHistory.myHistory = root.getNodeHistory(path); } histories[i] = pathHistory.getHistory(strictNodeHistory, start); } return histories; }
private PathInfo[] getPathHistories(String[] paths, long start, long end, boolean strictNodeHistory) throws SVNException { PathInfo[] histories = new PathInfo[paths.length]; FSRevisionRoot root = myFSFS.createRevisionRoot(end); for (int i = 0; i < paths.length; i++) { String path = paths[i]; PathInfo pathHistory = new PathInfo(); pathHistory.myPath = path; pathHistory.myHistoryRevision = end; pathHistory.myIsDone = false; pathHistory.myIsFirstTime = true; if (i < MAX_OPEN_HISTORIES) { pathHistory.myHistory = root.getNodeHistory(path); } histories[i] = pathHistory.getHistory(strictNodeHistory, start); } return histories; }
FSNodeHistory history = root.getNodeHistory(path); while (true) { history = history.getPreviousHistory(true);
FSNodeHistory history = root.getNodeHistory(path); while (true) { history = history.getPreviousHistory(true);
FSNodeHistory history = root.getNodeHistory(path); while (true) { history = history.getPreviousHistory(true);
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 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; }
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()))); }
long historyRev = -1; try { history = root.getNodeHistory(path); history = history.getPreviousHistory(false); historyRev = history.getHistoryEntry().getRevision();
FSNodeHistory history = root.getNodeHistory(path); long count = 0; do {
FSNodeHistory history = root.getNodeHistory(path); long count = 0; do {
FSNodeHistory history = root.getNodeHistory(path); long count = 0; do {