public File getTransactionProtoRevFile() { if (myTxnRevFile == null) { myTxnRevFile = getOwner().getTransactionProtoRevFile(myTxnID); } return myTxnRevFile; }
public File getTransactionChangesFile() throws SVNException { if (myTxnChangesFile == null) { myTxnChangesFile = new File(getOwner().getTransactionDir(myTxnID), "changes"); } return myTxnChangesFile; }
public File getTransactionProtoRevFile() { if (myTxnRevFile == null) { myTxnRevFile = getOwner().getTransactionProtoRevFile(myTxnID); } return myTxnRevFile; }
public File getTransactionRevFile() { if (myTxnRevFile == null) { myTxnRevFile = new File(getOwner().getTransactionDir(myTxnID), FSFS.TXN_PATH_REV); } return myTxnRevFile; }
public void writeFinalCurrentFile(long newRevision, String startNodeId, String startCopyId) throws SVNException, IOException { if (getOwner().getDBFormat() >= FSFS.MIN_NO_GLOBAL_IDS_FORMAT) { getOwner().writeCurrentFile(newRevision, null, null); return; } String[] txnIds = readNextIDs(); String txnNodeId = txnIds[0]; String txnCopyId = txnIds[1]; String newNodeId = FSTransactionRoot.addKeys(startNodeId, txnNodeId); String newCopyId = FSTransactionRoot.addKeys(startCopyId, txnCopyId); getOwner().writeCurrentFile(newRevision, newNodeId, newCopyId); }
public void writeFinalCurrentFile(long newRevision, String startNodeId, String startCopyId) throws SVNException, IOException { if (getOwner().getDBFormat() >= FSFS.MIN_NO_GLOBAL_IDS_FORMAT) { getOwner().writeCurrentFile(newRevision, null, null); return; } String[] txnIds = readNextIDs(); String txnNodeId = txnIds[0]; String txnCopyId = txnIds[1]; String newNodeId = FSTransactionRoot.addKeys(startNodeId, txnNodeId); String newCopyId = FSTransactionRoot.addKeys(startCopyId, txnCopyId); getOwner().writeCurrentFile(newRevision, newNodeId, newCopyId); }
public FSRevisionNode getRootRevisionNode() throws SVNException { if (myRootRevisionNode == null) { FSTransactionInfo txn = getTxn(); myRootRevisionNode = getOwner().getRevisionNode(txn.getRootID()); } return myRootRevisionNode; }
private FSP2LEntry lookupP2LEntry(FSFile revFile, long revision, long offset) throws SVNException { boolean isCached = false; //TODO: cache! if (!isCached) { FSLogicalAddressingIndex index = new FSLogicalAddressingIndex(myTxnRoot.getOwner(), revFile); List<FSP2LEntry> entries = index.lookupP2LEntries(revision, offset, offset + 1); return lookupEntry(entries, offset, null); } return null; }
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 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 Map getChangedPaths() throws SVNException { FSFile file = getOwner().getTransactionChangesFile(myTxnID); try { return fetchAllChanges(file, false); } finally { file.close(); } }
public FSRevisionNode getTxnBaseRootNode() throws SVNException { FSTransactionInfo txn = getTxn(); FSRevisionNode baseRootNode = getOwner().getRevisionNode(txn.getBaseID()); return baseRootNode; }
public String getNewTxnNodeId() throws SVNException { String[] curIds = readNextIDs(); String curNodeId = curIds[0]; String curCopyId = curIds[1]; String nextNodeId = FSRepositoryUtil.generateNextKey(curNodeId); getOwner().writeNextIDs(getTxnID(), nextNodeId, curCopyId); return "_" + curNodeId; }
public String getNewTxnNodeId() throws SVNException { String[] curIds = readNextIDs(); String curNodeId = curIds[0]; String curCopyId = curIds[1]; String nextNodeId = FSRepositoryUtil.generateNextKey(curNodeId); getOwner().writeNextIDs(getTxnID(), nextNodeId, curCopyId); return "_" + curNodeId; }
public String getNewTxnNodeId() throws SVNException { String[] curIds = readNextIDs(); String curNodeId = curIds[0]; String curCopyId = curIds[1]; String nextNodeId = FSRepositoryUtil.generateNextKey(curNodeId); getOwner().writeNextIDs(getTxnID(), nextNodeId, curCopyId); return "_" + curNodeId; }
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 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; }