SVNStatus status = createStatus(entry.getURL(), file, dir, parentEntry,
SVNStatus status = createStatus(entry.getSVNURL(), file, dir, parentEntry,
    private void sendVersionedStatus(SVNDirectory dir, String name) throws SVNException {        File file;        SVNEntry parentEntry;        SVNDirectory parentDir = null;        SVNEntry entry = dir.getEntries().getEntry(name, true);        if (entry.isDirectory()) {            if (!"".equals(name)) {                parentDir = dir;                dir = dir.getChildDirectory(name);                if (dir == null) {                    File dirFile = parentDir.getFile(name);                    if (SVNFileType.getType(dirFile) == SVNFileType.DIRECTORY) {                         dir = new SVNDirectory(myWCAccess, "".equals(parentDir.getPath()) ? name : SVNPathUtil.append(parentDir.getPath(), name), parentDir.getFile(name));                    }                }                SVNEntry fullEntry = dir != null ? dir.getEntries().getEntry("", false) : null;                if (fullEntry != null) {                    entry = fullEntry;                }                if (dir == null) {                    dir = parentDir;                }            } else {                // we are in the dir itself already, try to get parent dir.                if (!"".equals(dir.getPath())) {                    // there is parent dir                    String parentPath = SVNPathUtil.removeTail(dir.getPath());                    parentDir = myWCAccess.getDirectory(parentPath);                } else {                    // it is a root of wc.                    parentDir = null;                }            }        } else {            parentDir = dir;        }        SVNEntry entryInParent = entry;        if (dir == parentDir) {            file = dir.getFile(name);            entry = dir.getEntries().getEntry(name, true);            parentEntry = dir.getEntries().getEntry("", true);        } else {            file = dir.getRoot();            entry = dir.getEntries().getEntry("", true);            if (entry == null) {                // probably missing dir.                entry = entryInParent;                dir = parentDir;            }            parentEntry = parentDir != null ? parentDir.getEntries().getEntry("", true) : null;        }        SVNFileType fileType = SVNFileType.getType(file);        SVNStatus status = createStatus(entry.getURL(), file, dir, parentEntry,                entry, false, fileType, Collections.unmodifiableMap(entry.asMap()));        if (status != null) {            myHandler.handleStatus(status);        }    }