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 String reserveCopyId(String txnId) throws SVNException { FSTransactionRoot txnRoot = getTxnRoot(); String[] nextIds = txnRoot.readNextIDs(); String copyId = FSRepositoryUtil.generateNextKey(nextIds[1]); myFSFS.writeNextIDs(txnId, nextIds[0], copyId); return "_" + nextIds[1]; }
private FSID createNode(FSRevisionNode revNode, String copyId, String txnId) throws SVNException { FSTransactionRoot txnRoot = getTxnRoot(); String nodeId = txnRoot.getNewTxnNodeId(); FSID id = FSID.createTxnId(nodeId, copyId, txnId); revNode.setId(id); revNode.setIsFreshTxnRoot(false); myFSFS.putTxnRevisionNode(id, revNode); return id; }
public Map getChangedPaths() throws SVNException { FSFile file = getOwner().getPackOrRevisionFSFile(getRevision()); try { loadOffsets(file, FSID.ITEM_INDEX_CHANGES); file.seek(myChangesOffset); return fetchAllChanges(file, true); } finally { file.close(); } }
public void replay(long lowRevision, long highRevision, boolean sendDeltas, ISVNEditor editor) throws SVNException { try { openRepository(); FSRevisionRoot root = myFSFS.createRevisionRoot(highRevision); String basePath = getRepositoryPath(""); FSRepositoryUtil.replay(myFSFS, root, basePath, lowRevision, sendDeltas, editor); } finally { closeRepository(); } }
public FSRevisionNode getTxnBaseRootNode() throws SVNException { FSTransactionInfo txn = getTxn(); FSRevisionNode baseRootNode = getOwner().getRevisionNode(txn.getBaseID()); return baseRootNode; }
public Map getChangedPaths() throws SVNException { FSFile file = getOwner().getTransactionChangesFile(myTxnID); try { return fetchAllChanges(file, false); } finally { file.close(); } }
public FSRevisionNode getRootRevisionNode() throws SVNException { if (myRootRevisionNode == null) { FSTransactionInfo txn = getTxn(); myRootRevisionNode = getOwner().getRevisionNode(txn.getRootID()); } return myRootRevisionNode; }
private FSFile openAndSeekTransaction(FSRepresentation rep) throws SVNException { FSFile file = getTransactionRevisionPrototypeFile(rep.getTxnId()); long itemIndex = rep.getItemIndex(); long offset; if (isUseLogAddressing()) { offset = lookupOffsetInProtoIndex(file, rep.getTxnId(), itemIndex); } else { offset = itemIndex; } file.seek(offset); return file; }
private FSID createNode(FSRevisionNode revNode, String copyId, String txnId) throws SVNException { String nodeId = getNewTxnNodeId(); FSID id = FSID.createTxnId(nodeId, copyId, txnId); revNode.setId(id); myFSFS.putTxnRevisionNode(id, revNode); return id; }
public void incrementMergeInfoUpTree(FSParentPath parentPath, long increment) throws SVNException { while (parentPath != null) { FSTransactionRoot txnRoot = getTxnRoot(); txnRoot.incrementMergeInfoCount(parentPath.getRevNode(), increment); parentPath = parentPath.getParent(); } }
public String reserveCopyId(String txnId) throws SVNException { String[] nextIds = myTxnRoot.readNextIDs(); String copyId = FSRepositoryUtil.generateNextKey(nextIds[1]); myFSFS.writeNextIDs(txnId, nextIds[0], copyId); return "_" + nextIds[1]; }
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; }
private FSID createNode(FSRevisionNode revNode, String copyId, String txnId) throws SVNException { String nodeId = myTxnRoot.getNewTxnNodeId(); FSID id = FSID.createTxnId(nodeId, copyId, txnId); revNode.setId(id); revNode.setIsFreshTxnRoot(false); myFSFS.putTxnRevisionNode(id, revNode); return id; }
public void replay(long lowRevision, long highRevision, boolean sendDeltas, ISVNEditor editor) throws SVNException { try { openRepository(); FSRevisionRoot root = myFSFS.createRevisionRoot(highRevision); String basePath = getRepositoryPath(""); FSRepositoryUtil.replay(myFSFS, root, basePath, lowRevision, sendDeltas, editor); } finally { closeRepository(); } }
public FSRevisionNode getTxnBaseRootNode() throws SVNException { FSTransactionInfo txn = getTxn(); FSRevisionNode baseRootNode = getOwner().getRevisionNode(txn.getBaseID()); return baseRootNode; }
public Map getChangedPaths() throws SVNException { FSFile file = getOwner().getTransactionChangesFile(myTxnID); try { return fetchAllChanges(file, false); } finally { file.close(); } }
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; }
private FSID createNode(FSRevisionNode revNode, String copyId, String txnId) throws SVNException { String nodeId = myTxnRoot.getNewTxnNodeId(); FSID id = FSID.createTxnId(nodeId, copyId, txnId); revNode.setId(id); revNode.setIsFreshTxnRoot(false); myFSFS.putTxnRevisionNode(id, revNode); return id; }
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; }