FSRepresentation txtRep = revNode.getTextRepresentation(); String textRepresentation = FSRevisionNode.HEADER_TEXT + ": " + (txtRep.getTxnId() != null && revNode.getType() == SVNNodeKind.DIR ? "-1" : txtRep.getStringRepresentation(myDBFormat)) + "\n"; revNodeFile.write(textRepresentation.getBytes("UTF-8")); FSRepresentation propRep = revNode.getPropsRepresentation(); String propsRepresentation = FSRevisionNode.HEADER_PROPS + ": " + (propRep.getTxnId() != null ? "-1" : propRep.getStringRepresentation(myDBFormat)) + "\n"; revNodeFile.write(propsRepresentation.getBytes("UTF-8"));
FSRepresentation txtRep = revNode.getTextRepresentation(); String textRepresentation = FSRevisionNode.HEADER_TEXT + ": " + (txtRep.getTxnId() != null && revNode.getType() == SVNNodeKind.DIR ? "-1" : txtRep.getStringRepresentation(myDBFormat)) + "\n"; revNodeFile.write(textRepresentation.getBytes("UTF-8")); FSRepresentation propRep = revNode.getPropsRepresentation(); String propsRepresentation = FSRevisionNode.HEADER_PROPS + ": " + (propRep.getTxnId() != null ? "-1" : propRep.getStringRepresentation(myDBFormat)) + "\n"; revNodeFile.write(propsRepresentation.getBytes("UTF-8"));
FSRepresentation txtRep = revNode.getTextRepresentation(); String textRepresentation = FSRevisionNode.HEADER_TEXT + ": " + (txtRep.getTxnId() != null && revNode.getType() == SVNNodeKind.DIR ? "-1" : txtRep.getStringRepresentation(myDBFormat)) + "\n"; revNodeFile.write(textRepresentation.getBytes("UTF-8")); FSRepresentation propRep = revNode.getPropsRepresentation(); 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"); } }