editor.closeFile(item.getPath(), newChecksum);
editor.closeFile(path, newChecksum);
    public void sendTextDeltas(ISVNEditor editor) throws SVNException {        for (Iterator paths = myModifiedFiles.keySet().iterator(); paths.hasNext();) {            String path = (String) paths.next();            SVNCommitItem item = (SVNCommitItem) myModifiedFiles.get(path);            SVNEvent event = SVNEventFactory.createCommitEvent(myWCAccess.getAnchor().getRoot(), item.getFile(),                SVNEventAction.COMMIT_DELTA_SENT, SVNNodeKind.FILE, null);            myWCAccess.svnEvent(event, ISVNEventListener.UNKNOWN);            SVNDirectory dir = myWCAccess.getDirectory(PathUtil.removeTail(item.getPath()));            String name = PathUtil.tail(item.getPath());            SVNEntry entry = dir.getEntries().getEntry(name, false);            File tmpFile = dir.getBaseFile(name, true);            myTmpFiles.add(tmpFile);            SVNTranslator.translate(dir, name, name, SVNFileUtil.getBasePath(tmpFile), false, false);            String checksum = null;            String newChecksum = SVNFileUtil.computeChecksum(tmpFile);            if (!item.isAdded()) {                checksum = SVNFileUtil.computeChecksum(dir.getBaseFile(name, false));                String realChecksum = entry.getChecksum();                if (realChecksum == null || !realChecksum.equals(checksum)) {                    SVNErrorManager.error("svn: Checksum mismatch for '" + dir.getFile(name, false) + "'; expected '" + realChecksum + "', actual: '" + checksum + "'");                }            }            editor.applyTextDelta(item.getPath(), checksum);            boolean binary = dir.getProperties(name, false).getPropertyValue(SVNProperty.MIME_TYPE) != null ||                    dir.getBaseProperties(name, false).getPropertyValue(SVNProperty.MIME_TYPE) != null;            ISVNDeltaGenerator generator;            if (item.isAdded() || binary) {                generator = new SVNAllDeltaGenerator();            } else {                generator = new SVNSequenceDeltaGenerator();            }            SVNRAFileData base = new SVNRAFileData(dir.getBaseFile(name, false), true);            SVNRAFileData work = new SVNRAFileData(tmpFile, true);            try {                generator.generateDiffWindow(item.getPath(), editor, work, base);            } finally {                try {                    base.close();                } catch (IOException e) {                    //                }                try {                    work.close();                } catch (IOException e) {                    //                }            }            editor.closeFile(item.getPath(), newChecksum);        }    }