public FSRevisionNode getTxnBaseRootNode() throws SVNException { FSTransactionInfo txn = getTxn(); FSRevisionNode baseRootNode = getOwner().getRevisionNode(txn.getBaseID()); return baseRootNode; }
public FSRevisionNode getRootRevisionNode() throws SVNException { if (myRootRevisionNode == null) { FSTransactionInfo txn = getTxn(); myRootRevisionNode = getOwner().getRevisionNode(txn.getRootID()); } return myRootRevisionNode; }
public FSRevisionNode getRootRevisionNode() throws SVNException { if (myRootRevisionNode == null) { FSTransactionInfo txn = getTxn(); myRootRevisionNode = getOwner().getRevisionNode(txn.getRootID()); } return myRootRevisionNode; }
public FSRevisionNode getRootRevisionNode() throws SVNException { if (myRootRevisionNode == null) { FSTransactionInfo txn = getTxn(); myRootRevisionNode = getOwner().getRevisionNode(txn.getRootID()); } return myRootRevisionNode; }
public FSRevisionNode getRootRevisionNode() throws SVNException { if (myRootRevisionNode == null) { FSTransactionInfo txn = getTxn(); myRootRevisionNode = getOwner().getRevisionNode(txn.getRootID()); } return myRootRevisionNode; }
public FSRevisionNode getTxnBaseRootNode() throws SVNException { FSTransactionInfo txn = getTxn(); FSRevisionNode baseRootNode = getOwner().getRevisionNode(txn.getBaseID()); return baseRootNode; }
public FSRevisionNode getTxnBaseRootNode() throws SVNException { FSTransactionInfo txn = getTxn(); FSRevisionNode baseRootNode = getOwner().getRevisionNode(txn.getBaseID()); return baseRootNode; }
public FSRevisionNode getTxnBaseRootNode() throws SVNException { FSTransactionInfo txn = getTxn(); FSRevisionNode baseRootNode = getOwner().getRevisionNode(txn.getBaseID()); return baseRootNode; }
public FSRepresentation chooseDeltaBase(FSFS fsfsOwner) throws SVNException { if (getCount() == 0) { return null; } long count = getCount(); count = count & (count - 1); FSRevisionNode baseNode = this; while ((count++) < getCount()) { baseNode = fsfsOwner.getRevisionNode(baseNode.getPredecessorId()); } return baseNode.getTextRepresentation(); }
public FSTransactionInfo getTxn() throws SVNException { FSID rootID = FSID.createTxnId("0", "0", myTxnID); FSRevisionNode revNode = getOwner().getRevisionNode(rootID); FSTransactionInfo txn = new FSTransactionInfo(revNode.getId(), revNode.getPredecessorId()); return txn; }
public FSTransactionInfo getTxn() throws SVNException { FSID rootID = FSID.createTxnId("0", "0", myTxnID); FSRevisionNode revNode = getOwner().getRevisionNode(rootID); FSTransactionInfo txn = new FSTransactionInfo(revNode.getId(), revNode.getPredecessorId()); return txn; }
public FSRepresentation chooseDeltaBase(FSFS fsfsOwner) throws SVNException { if (getCount() == 0) { return null; } long count = getCount(); count = count & (count - 1); FSRevisionNode baseNode = this; while ((count++) < getCount()) { baseNode = fsfsOwner.getRevisionNode(baseNode.getPredecessorId()); } return baseNode.getTextRepresentation(); }
public FSTransactionInfo getTxn() throws SVNException { FSID rootID = FSID.createTxnId("0", "0", myTxnID); FSRevisionNode revNode = getOwner().getRevisionNode(rootID); FSTransactionInfo txn = new FSTransactionInfo(revNode.getId(), revNode.getPredecessorId()); return txn; }
public FSRepresentation chooseDeltaBase(FSFS fsfsOwner) throws SVNException { if (getCount() == 0) { return null; } long count = getCount(); count = count & (count - 1); FSRevisionNode baseNode = this; while ((count++) < getCount()) { baseNode = fsfsOwner.getRevisionNode(baseNode.getPredecessorId()); } return baseNode.getTextRepresentation(); }
public FSRepresentation chooseDeltaBase(FSFS fsfsOwner) throws SVNException { if (getCount() == 0) { return null; } long count = getCount(); count = count & (count - 1); FSRevisionNode baseNode = this; while ((count++) < getCount()) { baseNode = fsfsOwner.getRevisionNode(baseNode.getPredecessorId()); } return baseNode.getTextRepresentation(); }
public FSTransactionInfo getTxn() throws SVNException { FSID rootID = FSID.createTxnId("0", "0", myTxnID); FSRevisionNode revNode = getOwner().getRevisionNode(rootID); FSTransactionInfo txn = new FSTransactionInfo(revNode.getId(), revNode.getPredecessorId()); return txn; }
public FSRevisionNode getChildDirNode(String childName, FSFS fsfsOwner) throws SVNException { if (!SVNPathUtil.isSinglePathComponent(childName)) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.FS_NOT_SINGLE_PATH_COMPONENT, "Attempted to open node with an illegal name ''{0}''", childName); SVNErrorManager.error(err, SVNLogType.FSFS); } Map entries = getDirEntries(fsfsOwner); FSEntry entry = entries != null ? (FSEntry) entries.get(childName) : null; if (entry == null) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.FS_NOT_FOUND, "Attempted to open non-existent child node ''{0}''", childName); SVNErrorManager.error(err, SVNLogType.FSFS); } return fsfsOwner.getRevisionNode(entry.getId()); }
private void updateAncestry(FSID sourceId, FSID targetId, String targetPath, long sourcePredecessorCount) throws SVNException { if (!targetId.isTxn()) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.FS_NOT_MUTABLE, "Unexpected immutable node at ''{0}''", targetPath); SVNErrorManager.error(err); } FSRevisionNode revNode = myFSFS.getRevisionNode(targetId); revNode.setPredecessorId(sourceId); revNode.setCount(sourcePredecessorCount != -1 ? sourcePredecessorCount + 1 : sourcePredecessorCount); myFSFS.putTxnRevisionNode(targetId, revNode); }
private void updateAncestry(FSID sourceId, FSID targetId, String targetPath, long sourcePredecessorCount) throws SVNException { if (!targetId.isTxn()) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.FS_NOT_MUTABLE, "Unexpected immutable node at ''{0}''", targetPath); SVNErrorManager.error(err, SVNLogType.FSFS); } FSRevisionNode revNode = myFSFS.getRevisionNode(targetId); revNode.setPredecessorId(sourceId); revNode.setCount(sourcePredecessorCount != -1 ? sourcePredecessorCount + 1 : sourcePredecessorCount); revNode.setIsFreshTxnRoot(false); myFSFS.putTxnRevisionNode(targetId, revNode); }
private void updateAncestry(FSID sourceId, FSID targetId, String targetPath, long sourcePredecessorCount) throws SVNException { if (!targetId.isTxn()) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.FS_NOT_MUTABLE, "Unexpected immutable node at ''{0}''", targetPath); SVNErrorManager.error(err, SVNLogType.FSFS); } FSRevisionNode revNode = myFSFS.getRevisionNode(targetId); revNode.setPredecessorId(sourceId); revNode.setCount(sourcePredecessorCount != -1 ? sourcePredecessorCount + 1 : sourcePredecessorCount); revNode.setIsFreshTxnRoot(false); myFSFS.putTxnRevisionNode(targetId, revNode); }