public static boolean arePropertiesChanged(FSRoot root1, String path1, FSRoot root2, String path2) throws SVNException { FSRevisionNode node1 = root1.getRevisionNode(path1); FSRevisionNode node2 = root2.getRevisionNode(path2); return !areRepresentationsEqual(node1, node2, true); }
public static boolean arePropertiesChanged(FSRoot root1, String path1, FSRoot root2, String path2) throws SVNException { FSRevisionNode node1 = root1.getRevisionNode(path1); FSRevisionNode node2 = root2.getRevisionNode(path2); return !areRepresentationsEqual(node1, node2, true); }
public static boolean arePropertiesChanged(FSRoot root1, String path1, FSRoot root2, String path2) throws SVNException { FSRevisionNode node1 = root1.getRevisionNode(path1); FSRevisionNode node2 = root2.getRevisionNode(path2); return !areRepresentationsEqual(node1, node2, true); }
public long getFileSize(String path) throws SVNException { FSRevisionNode fileNode = getRevisionNode(path); return fileNode.getFileLength(); }
public InputStream getFileStreamForPath(SVNDeltaCombiner combiner, String path) throws SVNException { FSRevisionNode fileNode = getRevisionNode(path); return FSInputStream.createDeltaStream(combiner, fileNode, getOwner()); }
public InputStream getFileStreamForPath(SVNDeltaCombiner combiner, String path) throws SVNException { FSRevisionNode fileNode = getRevisionNode(path); return FSInputStream.createDeltaStream(combiner, fileNode, getOwner()); }
public InputStream getFileStreamForPath(SVNDeltaCombiner combiner, String path) throws SVNException { FSRevisionNode fileNode = getRevisionNode(path); return FSInputStream.createDeltaStream(combiner, fileNode, getOwner()); }
public long getContentLength(String path) throws SVNException { path = path == null ? getResourceURI().getPath() : path; FSRevisionNode node = myRoot.getRevisionNode(path); return node.getFileLength(); }
public SVNNodeKind checkNodeKind(String path) throws SVNException { FSRevisionNode revNode = null; try { revNode = getRevisionNode(path); } catch (SVNException svne) { if (svne.getErrorMessage().getErrorCode() == SVNErrorCode.FS_NOT_FOUND) { return SVNNodeKind.NONE; } throw svne; } return revNode.getType(); }
public SVNNodeKind checkNodeKind(String path) throws SVNException { FSRevisionNode revNode = null; try { revNode = getRevisionNode(path); } catch (SVNException svne) { if (svne.getErrorMessage().getErrorCode() == SVNErrorCode.FS_NOT_FOUND) { return SVNNodeKind.NONE; } throw svne; } return revNode.getType(); }
public long getCreatedRevisionUsingFS(String path) throws SVNException { path = path == null ? getResourceURI().getPath() : path; FSRevisionNode node = myRoot.getRevisionNode(path); return node.getCreatedRevision(); }
public String getMD5Checksum(String path) throws SVNException { path = path == null ? getResourceURI().getPath() : path; FSRevisionNode node = myRoot.getRevisionNode(path); return node.getFileMD5Checksum(); }
public SVNProperties getSVNProperties(String path) throws SVNException { path = path == null ? getResourceURI().getPath() : path; if (mySVNProperties == null) { mySVNProperties = myFSFS.getProperties(myRoot.getRevisionNode(path)); } return mySVNProperties; }
public static boolean areFileContentsChanged(FSRoot root1, String path1, FSRoot root2, String path2) throws SVNException { if (root1.checkNodeKind(path1) != SVNNodeKind.FILE) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.FS_GENERAL, "''{0}'' is not a file", path1); SVNErrorManager.error(err, SVNLogType.FSFS); } if (root2.checkNodeKind(path2) != SVNNodeKind.FILE) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.FS_GENERAL, "''{0}'' is not a file", path2); SVNErrorManager.error(err, SVNLogType.FSFS); } FSRevisionNode revNode1 = root1.getRevisionNode(path1); FSRevisionNode revNode2 = root2.getRevisionNode(path2); return !areRepresentationsEqual(revNode1, revNode2, false); }
public static boolean areFileContentsChanged(FSRoot root1, String path1, FSRoot root2, String path2) throws SVNException { if (root1.checkNodeKind(path1) != SVNNodeKind.FILE) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.FS_GENERAL, "''{0}'' is not a file", path1); SVNErrorManager.error(err, SVNLogType.FSFS); } if (root2.checkNodeKind(path2) != SVNNodeKind.FILE) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.FS_GENERAL, "''{0}'' is not a file", path2); SVNErrorManager.error(err, SVNLogType.FSFS); } FSRevisionNode revNode1 = root1.getRevisionNode(path1); FSRevisionNode revNode2 = root2.getRevisionNode(path2); return !areRepresentationsEqual(revNode1, revNode2, false); }
public boolean areFileContentsChanged(FSRoot root1, String path1, FSRoot root2, String path2) throws SVNException { if (root1.checkNodeKind(path1) != SVNNodeKind.FILE) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.FS_GENERAL, "''{0}'' is not a file", path1); SVNErrorManager.error(err); } if (root2.checkNodeKind(path2) != SVNNodeKind.FILE) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.FS_GENERAL, "''{0}'' is not a file", path2); SVNErrorManager.error(err); } FSRevisionNode revNode1 = root1.getRevisionNode(path1); FSRevisionNode revNode2 = root2.getRevisionNode(path2); return !areRepresentationsEqual(revNode1, revNode2, false); }
public static boolean areFileContentsChanged(FSRoot root1, String path1, FSRoot root2, String path2) throws SVNException { if (root1.checkNodeKind(path1) != SVNNodeKind.FILE) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.FS_GENERAL, "''{0}'' is not a file", path1); SVNErrorManager.error(err, SVNLogType.FSFS); } if (root2.checkNodeKind(path2) != SVNNodeKind.FILE) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.FS_GENERAL, "''{0}'' is not a file", path2); SVNErrorManager.error(err, SVNLogType.FSFS); } FSRevisionNode revNode1 = root1.getRevisionNode(path1); FSRevisionNode revNode2 = root2.getRevisionNode(path2); return !areRepresentationsEqual(revNode1, revNode2, false); }
public SVNNodeKind checkNodeKind(String path) throws SVNException { FSRevisionNode revNode = null; try { revNode = getRevisionNode(path); } catch (SVNException svne) { if (svne.getErrorMessage().getErrorCode() == SVNErrorCode.FS_NOT_FOUND || svne.getErrorMessage().getErrorCode() == SVNErrorCode.FS_NOT_DIRECTORY) { return SVNNodeKind.NONE; } throw svne; } return revNode.getType(); }
public SVNNodeKind checkNodeKind(String path) throws SVNException { FSRevisionNode revNode = null; try { revNode = getRevisionNode(path); } catch (SVNException svne) { if (svne.getErrorMessage().getErrorCode() == SVNErrorCode.FS_NOT_FOUND || svne.getErrorMessage().getErrorCode() == SVNErrorCode.FS_NOT_DIRECTORY) { return SVNNodeKind.NONE; } throw svne; } return revNode.getType(); }
private FSEntry fakeDirEntry(String reposPath, FSRoot root) throws SVNException { if (root.checkNodeKind(reposPath) == SVNNodeKind.NONE) { return null; } FSRevisionNode node = root.getRevisionNode(reposPath); FSEntry dirEntry = new FSEntry(node.getId(), node.getType(), SVNPathUtil.tail(node.getCreatedPath())); return dirEntry; }