private FSFile openAndSeekTransaction(FSRepresentation rep) throws SVNException { FSFile file = getTransactionRevisionPrototypeFile(rep.getTxnId()); long itemIndex = rep.getItemIndex(); long offset; if (isUseLogAddressing()) { offset = lookupOffsetInProtoIndex(file, rep.getTxnId(), itemIndex); } else { offset = itemIndex; } file.seek(offset); return file; }
private FSFile openAndSeekTransaction(FSRepresentation rep) { FSFile file = getTransactionRevisionPrototypeFile(rep.getTxnId()); file.seek(rep.getOffset()); return file; }
private FSFile openAndSeekTransaction(FSRepresentation rep) { FSFile file = getTransactionRevisionPrototypeFile(rep.getTxnId()); file.seek(rep.getOffset()); return file; }
private FSFile openAndSeekTransaction(FSRepresentation rep) { FSFile file = getTransactionRevisionPrototypeFile(rep.getTxnId()); file.seek(rep.getOffset()); return file; }
if (revNode.getTextRepresentation() != null) { String textRepresentation = FSRevisionNode.HEADER_TEXT + ": " + (revNode.getTextRepresentation().getTxnId() != null && revNode.getType() == SVNNodeKind.DIR ? "-1" : revNode.getTextRepresentation().toString()) + "\n"; revNodeFile.write(textRepresentation.getBytes("UTF-8")); String propsRepresentation = FSRevisionNode.HEADER_PROPS + ": " + (revNode.getPropsRepresentation().getTxnId() != null ? "-1" : revNode.getPropsRepresentation().toString()) + "\n"; revNodeFile.write(propsRepresentation.getBytes("UTF-8"));
String textRepresentation = FSRevisionNode.HEADER_TEXT + ": " + (txtRep.getTxnId() != null && revNode.getType() == SVNNodeKind.DIR ? "-1" : txtRep.getStringRepresentation(myDBFormat)) + "\n"; revNodeFile.write(textRepresentation.getBytes("UTF-8")); String propsRepresentation = FSRevisionNode.HEADER_PROPS + ": " + (propRep.getTxnId() != null ? "-1" : propRep.getStringRepresentation(myDBFormat)) + "\n"; revNodeFile.write(propsRepresentation.getBytes("UTF-8"));
String textRepresentation = FSRevisionNode.HEADER_TEXT + ": " + (txtRep.getTxnId() != null && revNode.getType() == SVNNodeKind.DIR ? "-1" : txtRep.getStringRepresentation(myDBFormat)) + "\n"; revNodeFile.write(textRepresentation.getBytes("UTF-8")); String propsRepresentation = FSRevisionNode.HEADER_PROPS + ": " + (propRep.getTxnId() != null ? "-1" : propRep.getStringRepresentation(myDBFormat)) + "\n"; revNodeFile.write(propsRepresentation.getBytes("UTF-8"));
String textRepresentation = FSRevisionNode.HEADER_TEXT + ": " + (txtRep.getTxnId() != null && revNode.getType() == SVNNodeKind.DIR ? "-1" : txtRep.getStringRepresentation(myDBFormat)) + "\n"; revNodeFile.write(textRepresentation.getBytes("UTF-8")); String propsRepresentation = FSRevisionNode.HEADER_PROPS + ": " + (propRep.getTxnId() != null ? "-1" : propRep.getStringRepresentation(myDBFormat)) + "\n"; revNodeFile.write(propsRepresentation.getBytes("UTF-8"));
private static void storeSha1RepMapping(FSFS fsfs, FSRepresentation representation) throws SVNException { if (fsfs.isRepSharingAllowed() && representation != null && representation.getSHA1HexDigest() != null) { final File fileName = pathTxnSha1(fsfs, representation, representation.getTxnId()); final String stringRepresentation = representation.getStringRepresentation(fsfs.getDBFormat()); SVNFileUtil.writeToFile(fileName, stringRepresentation, "UTF-8"); } }
rep.setTxnId(myRevNode.getId().getTxnID()); String uniqueSuffix = myTxnRoot.getNewTxnNodeId(); String uniquifier = rep.getTxnId() + '/' + uniqueSuffix; rep.setUniquifier(uniquifier); rep.setRevision(SVNRepository.INVALID_REVISION);
rep.setTxnId(myRevNode.getId().getTxnID()); String uniqueSuffix = myTxnRoot.getNewTxnNodeId(); String uniquifier = rep.getTxnId() + '/' + uniqueSuffix; rep.setUniquifier(uniquifier); rep.setRevision(SVNRepository.INVALID_REVISION);
rep.setTxnId(myRevNode.getId().getTxnID()); String uniqueSuffix = myTxnRoot.getNewTxnNodeId(); String uniquifier = rep.getTxnId() + '/' + uniqueSuffix; rep.setUniquifier(uniquifier); rep.setRevision(SVNRepository.INVALID_REVISION);
File file = pathTxnSha1(fsfs, representation, representation.getTxnId()); SVNFileType fileType = SVNFileType.getType(file); if (fileType == SVNFileType.FILE) {