SVNDirectory dir = "".equals(myName) ? getAnchor() : new SVNDirectory(this, myName, new File(getAnchor().getRoot(), myName)); SVNEntries entries = null; String name = ""; if (dir != null && dir.isVersioned()) { entries = dir.getEntries();
SVNEntries anchorEntries = getAnchor().getEntries(); SVNEntries targetEntries = getTarget().getEntries(); if (!"".equals(myName) && getAnchor() != getTarget()) { String value = null;  if (targetEntries != null) { value = targetEntries.getPropertyValue("", propertyName); } if (value == null) {  value = anchorEntries.getPropertyValue(myName, propertyName); if (value == null) {  value = anchorEntries.getPropertyValue("", propertyName); if (value != null && SVNProperty.URL.equals(propertyName)) {  value = PathUtil.append(value, PathUtil.encode(myName)); } } } return value;
    public String getTargetEntryProperty(String propertyName) throws SVNException {        SVNDirectory dir = "".equals(myName) ? getAnchor() : new SVNDirectory(this, myName, new File(getAnchor().getRoot(), myName));        SVNEntries entries = null;        String name = "";        if (dir != null && dir.isVersioned()) {            entries = dir.getEntries();                    }        if (entries == null) {            entries = getAnchor().getEntries();            name = myName;            if (entries.getEntry(name) != null && entries.getEntry(name).isDirectory()) {                name = "";            }        }        String value = null;        if (entries != null) {            try {                if (entries.getEntry(name) == null) {                    name = "";                }                value = entries.getPropertyValue(name, propertyName);            } finally {                entries.close();            }        }        if (SVNProperty.URL.equals(propertyName)) {            if (value != null && !name.equals(myName)) {                // generated URL.                value = PathUtil.append(value, PathUtil.encode(myName));            }        }        return value;            }