representation.setTxnId(txnId); representation.setUniquifier(fields[6]);
public void close() throws IOException { if (myIsClosed) { return; } myIsClosed = true; try { ByteArrayInputStream target = new ByteArrayInputStream(myTextBuffer.array(), 0, myTextBuffer.position()); myDeltaGenerator.sendDelta(null, mySourceStream, mySourceOffset, target, this, false); FSRepresentation rep = new FSRepresentation(); rep.setOffset(myRepOffset); long offset = myTargetFile.getPosition(); rep.setSize(offset - myDeltaStart); rep.setExpandedSize(myRepSize); rep.setTxnId(myRevNode.getId().getTxnID()); rep.setRevision(FSRepository.SVN_INVALID_REVNUM); rep.setHexDigest(SVNFileUtil.toHexDigest(myDigest)); myTargetFile.write("ENDREP\n".getBytes("UTF-8")); myRevNode.setTextRepresentation(rep); myTxnRoot.getOwner().putTxnRevisionNode(myRevNode.getId(), myRevNode); } catch (SVNException svne) { throw new IOException(svne.getMessage()); } finally { closeStreams(); } }
rep.setOffset(repState.myBaseOffset); rep.setSize(repState.myBaseLength); rep.setTxnId(null);
rep.setOffset(repState.myBaseOffset); rep.setSize(repState.myBaseLength); rep.setTxnId(null);
rep.setItemIndex(repState.myBaseOffset); rep.setSize(repState.myBaseLength); rep.setTxnId(null);
rep.setOffset(repState.myBaseOffset); rep.setSize(repState.myBaseLength); rep.setTxnId(null);
public void setProplist(FSRevisionNode node, Map 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); } File propsFile = getTransactionRevNodePropsFile(node.getId()); SVNProperties.setProperties(properties, propsFile, SVNFileUtil.createUniqueFile(propsFile.getParentFile(), propsFile.getName(), ".tmp"), SVNProperties.SVN_HASH_TERMINATOR); if (node.getPropsRepresentation() == null || !node.getPropsRepresentation().isTxn()) { FSRepresentation mutableRep = new FSRepresentation(); mutableRep.setTxnId(node.getId().getTxnID()); node.setPropsRepresentation(mutableRep); 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); } }
Map unparsedEntries = unparseDirEntries(namesToEntries); FSRepresentation textRep = revNode.getTextRepresentation(); textRep.setTxnId(null); textRep.setRevision(revision); try { if (revNode.getTextRepresentation() != null && revNode.getTextRepresentation().isTxn()) { FSRepresentation textRep = revNode.getTextRepresentation(); textRep.setTxnId(null); textRep.setRevision(revision); propsRep.setSize(size); propsRep.setHexDigest(hexDigest); propsRep.setTxnId(null); propsRep.setRevision(revision); propsRep.setExpandedSize(size);
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); } }
rep.setTxnId(myRevNode.getId().getTxnID()); String uniqueSuffix = myTxnRoot.getNewTxnNodeId(); String uniquifier = rep.getTxnId() + '/' + uniqueSuffix;
SVNProperties unparsedEntries = unparseDirEntries(namesToEntries); FSRepresentation textRep = revNode.getTextRepresentation(); textRep.setTxnId(null); textRep.setRevision(revision); try { if (revNode.getTextRepresentation() != null && revNode.getTextRepresentation().isTxn()) { FSRepresentation textRep = revNode.getTextRepresentation(); textRep.setTxnId(null); textRep.setRevision(revision); propsRep.setSize(size); propsRep.setMD5HexDigest(hexDigest); propsRep.setTxnId(null); propsRep.setRevision(revision); propsRep.setExpandedSize(size);
SVNProperties unparsedEntries = unparseDirEntries(namesToEntries); FSRepresentation textRep = revNode.getTextRepresentation(); textRep.setTxnId(null); textRep.setRevision(revision); try { if (revNode.getTextRepresentation() != null && revNode.getTextRepresentation().isTxn()) { FSRepresentation textRep = revNode.getTextRepresentation(); textRep.setTxnId(null); textRep.setRevision(revision); propsRep.setSize(size); propsRep.setMD5HexDigest(hexDigest); propsRep.setTxnId(null); propsRep.setRevision(revision); propsRep.setExpandedSize(size);
rep.setTxnId(myRevNode.getId().getTxnID()); String uniqueSuffix = myTxnRoot.getNewTxnNodeId(); String uniquifier = rep.getTxnId() + '/' + uniqueSuffix;
textRep = new FSRepresentation(); textRep.setRevision(FSRepository.SVN_INVALID_REVNUM); textRep.setTxnId(myTxnID); parentRevNode.setTextRepresentation(textRep); getOwner().putTxnRevisionNode(parentRevNode.getId(), parentRevNode);
rep.setTxnId(myRevNode.getId().getTxnID()); String uniqueSuffix = myTxnRoot.getNewTxnNodeId(); String uniquifier = rep.getTxnId() + '/' + uniqueSuffix;
textRep = new FSRepresentation(); textRep.setRevision(SVNRepository.INVALID_REVISION); textRep.setTxnId(myTxnID); String uniqueSuffix = getNewTxnNodeId(); String uniquifier = myTxnID + '/' + uniqueSuffix;
textRep = new FSRepresentation(); textRep.setRevision(SVNRepository.INVALID_REVISION); textRep.setTxnId(myTxnID); String uniqueSuffix = getNewTxnNodeId(); String uniquifier = myTxnID + '/' + uniqueSuffix;
textRep = new FSRepresentation(); textRep.setRevision(SVNRepository.INVALID_REVISION); textRep.setTxnId(myTxnID); String uniqueSuffix = getNewTxnNodeId(); String uniquifier = myTxnID + '/' + uniqueSuffix;