public boolean isUseLogAddressing() { return getOwner().isUseLogAddressing(); }
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 InputStream getFileStreamForPath(SVNDeltaCombiner combiner, String path) throws SVNException { FSRevisionNode fileNode = getRevisionNode(path); return FSInputStream.createDeltaStream(combiner, fileNode, getOwner()); }
public void diff(FSRoot root, long baseRevision, ISVNGNUDiffGenerator generator, OutputStream os) throws SVNException { if (myRootNode != null) { FSRevisionRoot baseRoot = root.getOwner().createRevisionRoot(baseRevision); try { diffImpl(root, baseRoot, "/", "/", myRootNode, generator, os); } finally { cleanup(); } } }
public void diff(FSRoot root, long baseRevision, ISVNGNUDiffGenerator generator, OutputStream os) throws SVNException { if (myRootNode != null) { FSRevisionRoot baseRoot = root.getOwner().createRevisionRoot(baseRevision); try { diffImpl(root, baseRoot, "/", "/", myRootNode, generator, os); } finally { cleanup(); } } }
public void diff(FSRoot root, long baseRevision, ISVNGNUDiffGenerator generator, OutputStream os) throws SVNException { if (myRootNode != null) { FSRevisionRoot baseRoot = root.getOwner().createRevisionRoot(baseRevision); try { diffImpl(root, baseRoot, "/", "/", myRootNode, generator, os); } finally { cleanup(); } } }
long rev = 0; if (root != null) { FSFS fsfs = root.getOwner(); SVNProperties props = null; if (root instanceof FSRevisionRoot) {
long rev = 0; if (root != null) { FSFS fsfs = root.getOwner(); SVNProperties props = null; if (root instanceof FSRevisionRoot) {
long rev = 0; if (root != null) { FSFS fsfs = root.getOwner(); SVNProperties props = null; if (root instanceof FSRevisionRoot) {
} else { try { child = here.getChildDirNode(entry, getOwner()); } catch (SVNException svne) { if (svne.getErrorMessage().getErrorCode() == SVNErrorCode.FS_NOT_FOUND) { SVNErrorMessage err = FSErrors.errorNotDirectory(pathSoFar, getOwner()); SVNErrorManager.error(err.wrap("Failure opening ''{0}''", path));
} else { try { child = here.getChildDirNode(entry, getOwner()); } catch (SVNException svne) { if (svne.getErrorMessage().getErrorCode() == SVNErrorCode.FS_NOT_FOUND) { SVNErrorMessage err = FSErrors.errorNotDirectory(pathSoFar, getOwner()); SVNErrorManager.error(err.wrap("Failure opening ''{0}''", path), SVNLogType.FSFS);
} else { try { child = here.getChildDirNode(entry, getOwner()); } catch (SVNException svne) { if (svne.getErrorMessage().getErrorCode() == SVNErrorCode.FS_NOT_FOUND) { SVNErrorMessage err = FSErrors.errorNotDirectory(pathSoFar, getOwner()); SVNErrorManager.error(err.wrap("Failure opening ''{0}''", path), SVNLogType.FSFS);
private DiffItem prepareTmpFile(FSRoot root, String path, ISVNDiffGenerator generator) throws SVNException { String mimeType = null; if (root != null) { FSRevisionNode node = root.getRevisionNode(path); SVNProperties nodeProps = node.getProperties(root.getOwner()); mimeType = nodeProps.getStringValue(SVNProperty.MIME_TYPE); if (SVNProperty.isBinaryMimeType(mimeType) && !generator.isForcedBinaryDiff()) { return new DiffItem(mimeType, null); } } File tmpFile = createTempFile(generator); if (root != null) { InputStream contents = null; OutputStream tmpOS = null; try { contents = root.getFileStreamForPath(new SVNDeltaCombiner(), path); tmpOS = SVNFileUtil.openFileForWriting(tmpFile); FSRepositoryUtil.copy(contents, tmpOS, myCancelHandler); } finally { SVNFileUtil.closeFile(contents); SVNFileUtil.closeFile(tmpOS); } } return new DiffItem(mimeType, tmpFile); }
try { node = myRoot.getRevisionNode(myResource.getResourceURI().getPath()); children = node.getDirEntries(myRoot.getOwner()); } catch (SVNException svne) { throw DAVException.convertError(svne.getErrorMessage(), HttpServletResponse.SC_INTERNAL_SERVER_ERROR,
private DiffItem prepareTmpFile(FSRoot root, String path, ISVNDiffGenerator generator) throws SVNException { String mimeType = null; if (root != null) { FSRevisionNode node = root.getRevisionNode(path); SVNProperties nodeProps = node.getProperties(root.getOwner()); mimeType = nodeProps.getStringValue(SVNProperty.MIME_TYPE); if (SVNProperty.isBinaryMimeType(mimeType) && !generator.isForcedBinaryDiff()) { return new DiffItem(mimeType, null); } } File tmpFile = createTempFile(generator); if (root != null) { InputStream contents = null; OutputStream tmpOS = null; try { contents = root.getFileStreamForPath(new SVNDeltaCombiner(), path); tmpOS = SVNFileUtil.openFileForWriting(tmpFile); FSRepositoryUtil.copy(contents, tmpOS, myCancelHandler); } finally { SVNFileUtil.closeFile(contents); SVNFileUtil.closeFile(tmpOS); } } return new DiffItem(mimeType, tmpFile); }
private DiffItem prepareTmpFile(FSRoot root, String path, ISVNDiffGenerator generator) throws SVNException { String mimeType = null; if (root != null) { FSRevisionNode node = root.getRevisionNode(path); SVNProperties nodeProps = node.getProperties(root.getOwner()); mimeType = nodeProps.getStringValue(SVNProperty.MIME_TYPE); if (SVNProperty.isBinaryMimeType(mimeType) && !generator.isForcedBinaryDiff()) { return new DiffItem(mimeType, null); } } File tmpFile = createTempFile(generator); if (root != null) { InputStream contents = null; OutputStream tmpOS = null; try { contents = root.getFileStreamForPath(new SVNDeltaCombiner(), path); tmpOS = SVNFileUtil.openFileForWriting(tmpFile); FSRepositoryUtil.copy(contents, tmpOS, myCancelHandler); } finally { SVNFileUtil.closeFile(contents); SVNFileUtil.closeFile(tmpOS); } } return new DiffItem(mimeType, tmpFile); }