public long getHistoryRevision() { return myHistory == null ? FSRepository.SVN_INVALID_REVNUM : myHistory.getHistoryEntry().getRevision(); }
public void pickUpNextHistory(boolean strict, long start) throws SVNException { if (myHistory == null) { return; } FSNodeHistory tempHist = myHistory.fsHistoryPrev(strict ? false : true, myFSFS); if (tempHist == null) { myHistory = null; return; } myHistory = tempHist; if (myHistory.getHistoryEntry().getRevision() < start) { myHistory = null; return; } }
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; }
long histRev = history.getHistoryEntry().getRevision(); String histPath = history.getHistoryEntry().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; }
long histRev = history.getHistoryEntry().getRevision(); String histPath = history.getHistoryEntry().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; }
long histRev = history.getHistoryEntry().getRevision(); String histPath = history.getHistoryEntry().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 = getNodeHistory(root, fsPath); fsPath = null; SVNLocationEntry currentHistory = null; while (true) { history = history.fsHistoryPrev(true, owner); 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); } 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()))); }
long revision = history.getHistoryEntry().getRevision(); if (revision < start) { break; if (includeIDs) { FSRevisionRoot revRoot = fsfs.createRevisionRoot(revision); FSRevisionNode node = revRoot.getRevisionNode(history.getHistoryEntry().getPath()); id = node.getId().toString(); handler.handlePath(new SVNAdminPath(history.getHistoryEntry().getPath(), id, revision)); } catch (SVNException svne) { if (svne.getErrorMessage().getErrorCode() == SVNErrorCode.CEASE_INVOCATION) {
long revision = history.getHistoryEntry().getRevision(); if (revision < start) { break; if (includeIDs) { FSRevisionRoot revRoot = fsfs.createRevisionRoot(revision); FSRevisionNode node = revRoot.getRevisionNode(history.getHistoryEntry().getPath()); id = node.getId().toString(); handler.handlePath(new SVNAdminPath(history.getHistoryEntry().getPath(), id, revision)); } catch (SVNException svne) { if (svne.getErrorMessage().getErrorCode() == SVNErrorCode.CEASE_INVOCATION) {
long revision = history.getHistoryEntry().getRevision(); if (revision < start) { break; if (includeIDs) { FSRevisionRoot revRoot = fsfs.createRevisionRoot(revision); FSRevisionNode node = revRoot.getRevisionNode(history.getHistoryEntry().getPath()); id = node.getId().toString(); handler.handlePath(new SVNAdminPath(history.getHistoryEntry().getPath(), id, revision)); } catch (SVNException svne) { if (svne.getErrorMessage().getErrorCode() == SVNErrorCode.CEASE_INVOCATION) {
break; long histRev = history.getHistoryEntry().getRevision(); String histPath = history.getHistoryEntry().getPath(); locationEntries.addFirst(new SVNLocationEntry(histRev, histPath)); if (histRev <= startRevision) {
history = root.getNodeHistory(path); history = history.getPreviousHistory(false); historyRev = history.getHistoryEntry().getRevision(); } catch (SVNException svne) { return revision;