public void closeFile(String path, String textChecksum) throws SVNException { // do PUT of delta if there was one (diff window + temp file). // do subsequent PUT of all diff windows... DAVResource currentFile = (DAVResource) myFilesMap.get(path); try { if (myDeltaFile != null) { InputStream combinedData = null; try { combinedData = new HTTPBodyInputStream(myDeltaFile); myConnection.doPutDiff(currentFile.getURL(), currentFile.getWorkingURL(), combinedData, myDeltaFile.length(), myBaseChecksum, textChecksum); } finally { SVNFileUtil.closeFile(combinedData); SVNFileUtil.deleteFile(myDeltaFile); myDeltaFile = null; } } // do proppatch if there were property changes. if (currentFile.getProperties() != null) { StringBuffer request = DAVProppatchHandler.generatePropertyRequest(null, currentFile.getProperties()); myConnection.doProppatch(currentFile.getURL(), currentFile.getWorkingURL(), request, null, null); } } finally { currentFile.dispose(); myCurrentDelta = null; myBaseChecksum = null; myFilesMap.remove(path); } }
public void closeFile(String path, String textChecksum) throws SVNException { // do PUT of delta if there was one (diff window + temp file). // do subsequent PUT of all diff windows... DAVResource currentFile = (DAVResource) myFilesMap.get(path); try { if (myDeltaFile != null) { InputStream combinedData = null; try { combinedData = new HTTPBodyInputStream(myDeltaFile); myConnection.doPutDiff(currentFile.getURL(), currentFile.getWorkingURL(), combinedData, myDeltaFile.length(), myBaseChecksum, textChecksum); } finally { SVNFileUtil.closeFile(combinedData); SVNFileUtil.deleteFile(myDeltaFile); myDeltaFile = null; } } // do proppatch if there were property changes. if (currentFile.getProperties() != null) { StringBuffer request = DAVProppatchHandler.generatePropertyRequest(null, currentFile.getProperties()); myConnection.doProppatch(currentFile.getURL(), currentFile.getWorkingURL(), request, null, null); } } finally { currentFile.dispose(); myCurrentDelta = null; myBaseChecksum = null; myFilesMap.remove(path); } }
public void closeFile(String path, String textChecksum) throws SVNException { // do PUT of delta if there was one (diff window + temp file). // do subsequent PUT of all diff windows... DAVResource currentFile = (DAVResource) myFilesMap.get(path); try { if (myDeltaFile != null) { InputStream combinedData = null; try { combinedData = new HTTPBodyInputStream(myDeltaFile); myConnection.doPutDiff(currentFile.getURL(), currentFile.getWorkingURL(), combinedData, myDeltaFile.length(), myBaseChecksum, textChecksum); } finally { SVNFileUtil.closeFile(combinedData); SVNFileUtil.deleteFile(myDeltaFile); myDeltaFile = null; } } // do proppatch if there were property changes. if (currentFile.getProperties() != null) { StringBuffer request = DAVProppatchHandler.generatePropertyRequest(null, currentFile.getProperties()); myConnection.doProppatch(currentFile.getURL(), currentFile.getWorkingURL(), request, null, null); } } finally { currentFile.dispose(); myCurrentDelta = null; myBaseChecksum = null; myFilesMap.remove(path); } }
try { combinedData = new HTTPBodyInputStream(myDeltaFile); myConnection.doPutDiff(currentFile.getURL(), myConnection.hasHttpV2Support() ? currentFile.getCustomURL() : currentFile.getWorkingURL(), combinedData, myDeltaFile.length(), myBaseChecksum, textChecksum);