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; }
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; }
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; }
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); }
private static void updateAncestry(FSFS owner, FSID sourceId, FSID targetId) throws SVNException { if (!targetId.isTxn()) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.FS_NOT_MUTABLE, "Attempt to update ancestry of non-mutable node"); SVNErrorManager.error(err, SVNLogType.FSFS); } final FSRevisionNode targetNode = owner.getRevisionNode(targetId); final FSRevisionNode sourceNode = owner.getRevisionNode(sourceId); targetNode.setPredecessorId(sourceNode.getId()); final long sourcePredecessorCount = sourceNode.getCount(); targetNode.setPredecessorId(sourceId); targetNode.setCount(sourcePredecessorCount != -1 ? sourcePredecessorCount + 1 : sourcePredecessorCount); targetNode.setIsFreshTxnRoot(false); owner.putTxnRevisionNode(targetId, targetNode); }
public FSID createSuccessor(FSID oldId, FSRevisionNode newRevNode, String copyId) throws SVNException { if (copyId == null) { copyId = oldId.getCopyID(); } FSID id = FSID.createTxnId(oldId.getNodeID(), copyId, myTxnID); newRevNode.setId(id); if (newRevNode.getCopyRootPath() == null) { newRevNode.setCopyRootPath(newRevNode.getCreatedPath()); newRevNode.setCopyRootRevision(newRevNode.getId().getRevision()); } newRevNode.setIsFreshTxnRoot(false); getOwner().putTxnRevisionNode(newRevNode.getId(), newRevNode); return id; }
public FSID createSuccessor(FSID oldId, FSRevisionNode newRevNode, String copyId) throws SVNException { if (copyId == null) { copyId = oldId.getCopyID(); } FSID id = FSID.createTxnId(oldId.getNodeID(), copyId, myTxnID); newRevNode.setId(id); if (newRevNode.getCopyRootPath() == null) { newRevNode.setCopyRootPath(newRevNode.getCreatedPath()); newRevNode.setCopyRootRevision(newRevNode.getId().getRevision()); } newRevNode.setIsFreshTxnRoot(false); getOwner().putTxnRevisionNode(newRevNode.getId(), newRevNode); return id; }
public FSID createSuccessor(FSID oldId, FSRevisionNode newRevNode, String copyId) throws SVNException { if (copyId == null) { copyId = oldId.getCopyID(); } FSID id = FSID.createTxnId(oldId.getNodeID(), copyId, myTxnID); newRevNode.setId(id); if (newRevNode.getCopyRootPath() == null) { newRevNode.setCopyRootPath(newRevNode.getCreatedPath()); newRevNode.setCopyRootRevision(newRevNode.getId().getRevision()); } newRevNode.setIsFreshTxnRoot(false); getOwner().putTxnRevisionNode(newRevNode.getId(), newRevNode); return id; }
public void setProplist(FSRevisionNode node, SVNProperties properties) throws SVNException { if (!node.getId().isTxn()) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.FS_NOT_MUTABLE, "Can't set proplist on *immutable* node-revision {0}", node.getId()); SVNErrorManager.error(err, SVNLogType.FSFS); } File propsFile = getTransactionRevNodePropsFile(node.getId()); SVNWCProperties.setProperties(properties, propsFile, SVNFileUtil.createUniqueFile(propsFile.getParentFile(), ".props", ".tmp", false), SVNWCProperties.SVN_HASH_TERMINATOR); if (node.getPropsRepresentation() == null || !node.getPropsRepresentation().isTxn()) { FSRepresentation mutableRep = new FSRepresentation(); mutableRep.setTxnId(node.getId().getTxnID()); node.setPropsRepresentation(mutableRep); node.setIsFreshTxnRoot(false); getOwner().putTxnRevisionNode(node.getId(), node); } }
public void setProplist(FSRevisionNode node, SVNProperties properties) throws SVNException { if (!node.getId().isTxn()) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.FS_NOT_MUTABLE, "Can't set proplist on *immutable* node-revision {0}", node.getId()); SVNErrorManager.error(err, SVNLogType.FSFS); } File propsFile = getTransactionRevNodePropsFile(node.getId()); SVNWCProperties.setProperties(properties, propsFile, SVNFileUtil.createUniqueFile(propsFile.getParentFile(), ".props", ".tmp", false), SVNWCProperties.SVN_HASH_TERMINATOR); if (node.getPropsRepresentation() == null || !node.getPropsRepresentation().isTxn()) { FSRepresentation mutableRep = new FSRepresentation(); mutableRep.setTxnId(node.getId().getTxnID()); node.setPropsRepresentation(mutableRep); node.setIsFreshTxnRoot(false); getOwner().putTxnRevisionNode(node.getId(), node); } }
public void setProplist(FSRevisionNode node, SVNProperties properties) throws SVNException { if (!node.getId().isTxn()) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.FS_NOT_MUTABLE, "Can't set proplist on *immutable* node-revision {0}", node.getId()); SVNErrorManager.error(err, SVNLogType.FSFS); } File propsFile = getTransactionRevNodePropsFile(node.getId()); SVNWCProperties.setProperties(properties, propsFile, SVNFileUtil.createUniqueFile(propsFile.getParentFile(), ".props", ".tmp", false), SVNWCProperties.SVN_HASH_TERMINATOR); if (node.getPropsRepresentation() == null || !node.getPropsRepresentation().isTxn()) { FSRepresentation mutableRep = new FSRepresentation(); mutableRep.setTxnId(node.getId().getTxnID()); node.setPropsRepresentation(mutableRep); node.setIsFreshTxnRoot(false); getOwner().putTxnRevisionNode(node.getId(), node); } }
myRevNode.setTextRepresentation(rep); myRevNode.setIsFreshTxnRoot(false); fsfs.putTxnRevisionNode(myRevNode.getId(), myRevNode); } catch (SVNException svne) {
public void createNewTxnNodeRevisionFromRevision(String txnID, FSRevisionNode sourceNode) throws SVNException { if (sourceNode.getId().isTxn()) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.FS_CORRUPT, "Copying from transactions not allowed"); SVNErrorManager.error(err, SVNLogType.FSFS); } FSRevisionNode revNode = FSRevisionNode.dumpRevisionNode(sourceNode); revNode.setPredecessorId(sourceNode.getId()); revNode.setCount(revNode.getCount() + 1); revNode.setCopyFromPath(null); revNode.setIsFreshTxnRoot(true); revNode.setCopyFromRevision(SVNRepository.INVALID_REVISION); revNode.setId(FSID.createTxnId(sourceNode.getId().getNodeID(), sourceNode.getId().getCopyID(), txnID)); putTxnRevisionNode(revNode.getId(), revNode); }
public void createNewTxnNodeRevisionFromRevision(String txnID, FSRevisionNode sourceNode) throws SVNException { if (sourceNode.getId().isTxn()) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.FS_CORRUPT, "Copying from transactions not allowed"); SVNErrorManager.error(err, SVNLogType.FSFS); } FSRevisionNode revNode = FSRevisionNode.dumpRevisionNode(sourceNode); revNode.setPredecessorId(sourceNode.getId()); revNode.setCount(revNode.getCount() + 1); revNode.setCopyFromPath(null); revNode.setIsFreshTxnRoot(true); revNode.setCopyFromRevision(SVNRepository.INVALID_REVISION); revNode.setId(FSID.createTxnId(sourceNode.getId().getNodeID(), sourceNode.getId().getCopyID(), txnID)); putTxnRevisionNode(revNode.getId(), revNode); }
myRevNode.setTextRepresentation(rep); myRevNode.setIsFreshTxnRoot(false); fsfs.putTxnRevisionNode(myRevNode.getId(), myRevNode); } catch (SVNException svne) {
public void createNewTxnNodeRevisionFromRevision(String txnID, FSRevisionNode sourceNode) throws SVNException { if (sourceNode.getId().isTxn()) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.FS_CORRUPT, "Copying from transactions not allowed"); SVNErrorManager.error(err, SVNLogType.FSFS); } FSRevisionNode revNode = FSRevisionNode.dumpRevisionNode(sourceNode); revNode.setPredecessorId(sourceNode.getId()); revNode.setCount(revNode.getCount() + 1); revNode.setCopyFromPath(null); revNode.setIsFreshTxnRoot(true); revNode.setCopyFromRevision(SVNRepository.INVALID_REVISION); revNode.setId(FSID.createTxnId(sourceNode.getId().getNodeID(), sourceNode.getId().getCopyID(), txnID)); putTxnRevisionNode(revNode.getId(), revNode); }
textRep.setUniquifier(uniquifier); parentRevNode.setTextRepresentation(textRep); parentRevNode.setIsFreshTxnRoot(false); getOwner().putTxnRevisionNode(parentRevNode.getId(), parentRevNode); } else {
textRep.setUniquifier(uniquifier); parentRevNode.setTextRepresentation(textRep); parentRevNode.setIsFreshTxnRoot(false); getOwner().putTxnRevisionNode(parentRevNode.getId(), parentRevNode); } else {
textRep.setUniquifier(uniquifier); parentRevNode.setTextRepresentation(textRep); parentRevNode.setIsFreshTxnRoot(false); getOwner().putTxnRevisionNode(parentRevNode.getId(), parentRevNode); } else {