attributes.put(SVNProperty.COPYFROM_REVISION, String.valueOf(entry.getRevision()));
attributes.put(SVNProperty.COPIED, Boolean.TRUE.toString());
if (myIsLockOnDemand && entry.isDirectory()) {
SVNAdminArea area = myWCAccess.getAdminArea(path);
if (area != null && !area.isLocked()) {
area.lock(false);
}
}
final SVNAdminArea adminArea = myWCAccess.retrieve(entry.isDirectory() ? path : parentPath);
adminArea.modifyEntry(entry.isDirectory() ? adminArea.getThisDirName() : entryName, attributes, true, true);
if (entry.isDirectory()) {