private static boolean areRepresentationsEqual(FSRevisionNode revNode1, FSRevisionNode revNode2, boolean forProperties) { if(revNode1 == revNode2){ return true; }else if(revNode1 == null || revNode2 == null){ return false; } return FSRepresentation.compareRepresentations(forProperties ? revNode1.getPropsRepresentation() : revNode1.getTextRepresentation(), forProperties ? revNode2.getPropsRepresentation() : revNode2.getTextRepresentation()); } }
private static boolean areRepresentationsEqual(FSRevisionNode revNode1, FSRevisionNode revNode2, boolean forProperties) { if(revNode1 == revNode2){ return true; }else if(revNode1 == null || revNode2 == null){ return false; } return FSRepresentation.compareRepresentations(forProperties ? revNode1.getPropsRepresentation() : revNode1.getTextRepresentation(), forProperties ? revNode2.getPropsRepresentation() : revNode2.getTextRepresentation()); }
private boolean areRepresentationsEqual(FSRevisionNode revNode1, FSRevisionNode revNode2, boolean forProperties) { if(revNode1 == revNode2){ return true; }else if(revNode1 == null || revNode2 == null){ return false; } return FSRepresentation.compareRepresentations(forProperties ? revNode1.getPropsRepresentation() : revNode1.getTextRepresentation(), forProperties ? revNode2.getPropsRepresentation() : revNode2.getTextRepresentation()); }
private static boolean areRepresentationsEqual(FSRevisionNode revNode1, FSRevisionNode revNode2, boolean forProperties) { if(revNode1 == revNode2){ return true; }else if(revNode1 == null || revNode2 == null){ return false; } return FSRepresentation.compareRepresentations(forProperties ? revNode1.getPropsRepresentation() : revNode1.getTextRepresentation(), forProperties ? revNode2.getPropsRepresentation() : revNode2.getTextRepresentation()); }
public String getFileSHA1Checksum() throws SVNException { if (getType() != SVNNodeKind.FILE) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.FS_NOT_FILE, "Attempted to get checksum of a *non*-file node"); SVNErrorManager.error(err, SVNLogType.FSFS); } return getTextRepresentation() != null ? getTextRepresentation().getSHA1HexDigest() : ""; }
public long getFileLength() throws SVNException { if (getType() != SVNNodeKind.FILE) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.FS_NOT_FILE, "Attempted to get length of a *non*-file node"); SVNErrorManager.error(err, SVNLogType.FSFS); } return getTextRepresentation() != null ? getTextRepresentation().getExpandedSize() : 0; }
public String getFileMD5Checksum() throws SVNException { if (getType() != SVNNodeKind.FILE) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.FS_NOT_FILE, "Attempted to get checksum of a *non*-file node"); SVNErrorManager.error(err, SVNLogType.FSFS); } return getTextRepresentation() != null ? getTextRepresentation().getMD5HexDigest() : ""; }
public String getFileMD5Checksum() throws SVNException { if (getType() != SVNNodeKind.FILE) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.FS_NOT_FILE, "Attempted to get checksum of a *non*-file node"); SVNErrorManager.error(err, SVNLogType.FSFS); } return getTextRepresentation() != null ? getTextRepresentation().getMD5HexDigest() : ""; }
public long getFileLength() throws SVNException { if (getType() != SVNNodeKind.FILE) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.FS_NOT_FILE, "Attempted to get length of a *non*-file node"); SVNErrorManager.error(err, SVNLogType.FSFS); } return getTextRepresentation() != null ? getTextRepresentation().getExpandedSize() : 0; }
public String getFileChecksum() throws SVNException { if (getType() != SVNNodeKind.FILE) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.FS_NOT_FILE, "Attempted to get checksum of a *non*-file node"); SVNErrorManager.error(err); } return getTextRepresentation() != null ? getTextRepresentation().getHexDigest() : ""; }
public String getFileMD5Checksum() throws SVNException { if (getType() != SVNNodeKind.FILE) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.FS_NOT_FILE, "Attempted to get checksum of a *non*-file node"); SVNErrorManager.error(err, SVNLogType.FSFS); } return getTextRepresentation() != null ? getTextRepresentation().getMD5HexDigest() : ""; }
public long getFileLength() throws SVNException { if (getType() != SVNNodeKind.FILE) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.FS_NOT_FILE, "Attempted to get length of a *non*-file node"); SVNErrorManager.error(err, SVNLogType.FSFS); } return getTextRepresentation() != null ? getTextRepresentation().getExpandedSize() : 0; }
public String getFileSHA1Checksum() throws SVNException { if (getType() != SVNNodeKind.FILE) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.FS_NOT_FILE, "Attempted to get checksum of a *non*-file node"); SVNErrorManager.error(err, SVNLogType.FSFS); } return getTextRepresentation() != null ? getTextRepresentation().getSHA1HexDigest() : ""; }
public long getFileLength() throws SVNException { if (getType() != SVNNodeKind.FILE) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.FS_NOT_FILE, "Attempted to get length of a *non*-file node"); SVNErrorManager.error(err); } return getTextRepresentation() != null ? getTextRepresentation().getExpandedSize() : 0; } }
public String getFileSHA1Checksum() throws SVNException { if (getType() != SVNNodeKind.FILE) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.FS_NOT_FILE, "Attempted to get checksum of a *non*-file node"); SVNErrorManager.error(err, SVNLogType.FSFS); } return getTextRepresentation() != null ? getTextRepresentation().getSHA1HexDigest() : ""; }
public static InputStream createDeltaStream(SVNDeltaCombiner combiner, FSRevisionNode fileNode, FSFS owner) throws SVNException { if (fileNode == null) { return SVNFileUtil.DUMMY_IN; } else if (fileNode.getType() != SVNNodeKind.FILE) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.FS_NOT_FILE, "Attempted to get textual contents of a *non*-file node"); SVNErrorManager.error(err, SVNLogType.FSFS); } FSRepresentation representation = fileNode.getTextRepresentation(); if (representation == null) { return SVNFileUtil.DUMMY_IN; } return new FSInputStream(combiner, representation, owner); }
public FSRepresentation chooseDeltaBase(FSFS fsfsOwner) throws SVNException { if (getCount() == 0) { return null; } long count = getCount(); count = count & (count - 1); FSRevisionNode baseNode = this; while ((count++) < getCount()) { baseNode = fsfsOwner.getRevisionNode(baseNode.getPredecessorId()); } return baseNode.getTextRepresentation(); }
public FSRepresentation chooseDeltaBase(FSFS fsfsOwner) throws SVNException { if (getCount() == 0) { return null; } long count = getCount(); count = count & (count - 1); FSRevisionNode baseNode = this; while ((count++) < getCount()) { baseNode = fsfsOwner.getRevisionNode(baseNode.getPredecessorId()); } return baseNode.getTextRepresentation(); }
public FSRepresentation chooseDeltaBase(FSFS fsfsOwner) throws SVNException { if (getCount() == 0) { return null; } long count = getCount(); count = count & (count - 1); FSRevisionNode baseNode = this; while ((count++) < getCount()) { baseNode = fsfsOwner.getRevisionNode(baseNode.getPredecessorId()); } return baseNode.getTextRepresentation(); }
public FSRepresentation chooseDeltaBase(FSFS fsfsOwner) throws SVNException { if (getCount() == 0) { return null; } long count = getCount(); count = count & (count - 1); FSRevisionNode baseNode = this; while ((count++) < getCount()) { baseNode = fsfsOwner.getRevisionNode(baseNode.getPredecessorId()); } return baseNode.getTextRepresentation(); }