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 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; }
private static FSTransactionInfo createTxn(long baseRevision, FSFS owner) throws SVNException { String txnID = createTxnDir(baseRevision, owner); FSTransactionInfo txn = new FSTransactionInfo(baseRevision, txnID); FSRevisionRoot root = owner.createRevisionRoot(baseRevision); FSRevisionNode rootNode = root.getRootRevisionNode(); owner.createNewTxnNodeRevisionFromRevision(txnID, rootNode); SVNFileUtil.createEmptyFile(new File(owner.getTransactionDir(txn.getTxnId()), FSFS.TXN_PATH_REV)); SVNFileUtil.createEmptyFile(new File(owner.getTransactionDir(txn.getTxnId()), "changes")); owner.writeNextIDs(txnID, "0", "0"); return txn; }
private static FSTransactionInfo createTxn(long baseRevision, FSFS owner) throws SVNException { String txnId = null; if (owner.getDBFormat() >= FSFS.MIN_CURRENT_TXN_FORMAT) { txnId = createTxnDir(baseRevision, owner); } else { txnId = createPre15TxnDir(baseRevision, owner); } FSTransactionInfo txn = new FSTransactionInfo(baseRevision, txnId); FSRevisionRoot root = owner.createRevisionRoot(baseRevision); FSRevisionNode rootNode = root.getRootRevisionNode(); owner.createNewTxnNodeRevisionFromRevision(txnId, rootNode); SVNFileUtil.createEmptyFile(owner.getTransactionProtoRevFile(txn.getTxnId())); SVNFileUtil.createEmptyFile(owner.getTransactionProtoRevLockFile(txn.getTxnId())); SVNFileUtil.createEmptyFile(new File(owner.getTransactionDir(txn.getTxnId()), "changes")); owner.writeNextIDs(txnId, "0", "0"); return txn; }
private static FSTransactionInfo createTxn(long baseRevision, FSFS owner) throws SVNException { String txnId = null; if (owner.getDBFormat() >= FSFS.MIN_CURRENT_TXN_FORMAT) { txnId = createTxnDir(baseRevision, owner); } else { txnId = createPre15TxnDir(baseRevision, owner); } FSTransactionInfo txn = new FSTransactionInfo(baseRevision, txnId); FSRevisionRoot root = owner.createRevisionRoot(baseRevision); FSRevisionNode rootNode = root.getRootRevisionNode(); owner.createNewTxnNodeRevisionFromRevision(txnId, rootNode); SVNFileUtil.createEmptyFile(owner.getTransactionProtoRevFile(txn.getTxnId())); SVNFileUtil.createEmptyFile(owner.getTransactionProtoRevLockFile(txn.getTxnId())); SVNFileUtil.createEmptyFile(new File(owner.getTransactionDir(txn.getTxnId()), "changes")); owner.writeNextIDs(txnId, "0", "0"); return txn; }
private static FSTransactionInfo createTxn(long baseRevision, FSFS owner) throws SVNException { String txnId = null; if (owner.getDBFormat() >= FSFS.MIN_CURRENT_TXN_FORMAT) { txnId = createTxnDir(baseRevision, owner); } else { txnId = createPre15TxnDir(baseRevision, owner); } FSTransactionInfo txn = new FSTransactionInfo(baseRevision, txnId); FSRevisionRoot root = owner.createRevisionRoot(baseRevision); FSRevisionNode rootNode = root.getRootRevisionNode(); owner.createNewTxnNodeRevisionFromRevision(txnId, rootNode); SVNFileUtil.createEmptyFile(owner.getTransactionProtoRevFile(txn.getTxnId())); SVNFileUtil.createEmptyFile(owner.getTransactionProtoRevLockFile(txn.getTxnId())); SVNFileUtil.createEmptyFile(new File(owner.getTransactionDir(txn.getTxnId()), "changes")); owner.writeNextIDs(txnId, "0", "0"); return txn; }