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 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 String reserveCopyId(String txnId) throws SVNException { String[] nextIds = myTxnRoot.readNextIDs(); String copyId = FSTransactionRoot.generateNextKey(nextIds[1]); myFSFS.writeNextIDs(txnId, nextIds[0], copyId); return "_" + nextIds[1]; }
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 String getNewTxnNodeId() throws SVNException { String[] curIds = myTxnRoot.readNextIDs(); String curNodeId = curIds[0]; String curCopyId = curIds[1]; String nextNodeId = FSTransactionRoot.generateNextKey(curNodeId); myFSFS.writeNextIDs(myTxnRoot.getTxnID(), nextNodeId, curCopyId); return "_" + nextNodeId; }
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 void writeFinalCurrentFile(long newRevision, String startNodeId, String startCopyId) throws SVNException, IOException { String[] txnIds = readNextIDs(); String txnNodeId = txnIds[0]; String txnCopyId = txnIds[1]; String newNodeId = FSTransactionRoot.addKeys(startNodeId, txnNodeId); String newCopyId = FSTransactionRoot.addKeys(startCopyId, txnCopyId); String line = newRevision + " " + newNodeId + " " + newCopyId + "\n"; File currentFile = getOwner().getCurrentFile(); File tmpCurrentFile = SVNFileUtil.createUniqueFile(currentFile.getParentFile(), currentFile.getName(), ".tmp"); OutputStream currentOS = null; try { currentOS = SVNFileUtil.openFileForWriting(tmpCurrentFile); currentOS.write(line.getBytes("UTF-8")); } finally { SVNFileUtil.closeFile(currentOS); } SVNFileUtil.rename(tmpCurrentFile, currentFile); }
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 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 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); }