if (entry == null || entry.isDeleted()) {
dir = wcAccess.open(path, true, copyFromURL != null ? SVNWCAccess.INFINITE_DEPTH : 0);
}
command.put(SVNProperty.shortPropertyName(SVNProperty.INCOMPLETE), null);
command.put(SVNProperty.shortPropertyName(SVNProperty.SCHEDULE), replace ? SVNProperty.SCHEDULE_REPLACE : SVNProperty.SCHEDULE_ADD);
dir.modifyEntry(dir.getThisDirName(), command, true, true);
if (copyFromURL != null) {
SVNURL newURL = parentEntry.getSVNURL().appendPath(name, false);
updateCleanup(path, wcAccess, true, newURL.toString(), parentEntry.getRepositoryRoot(), -1, false);
markTree(dir, null, true, COPIED);
SVNPropertiesManager.deleteWCProperties(dir, null, true);