diff.addAll(newExternals.keySet());
}
// now we have diff.
for (Iterator diffPaths = diff.iterator(); diffPaths.hasNext();) {
String diffPath = (String) diffPaths.next();
SVNDepth ambientDepth = depths == Collections.EMPTY_MAP ? SVNDepth.INFINITY : (SVNDepth) depths.get(diffPath);
if (ambientDepth == null) {
// TODO convert diffpath to full path.
SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.WC_CORRUPT, "Traversal of ''{0}'' found no ambient depth", diffPath);
SVNErrorManager.error(err, SVNLogType.WC);
}
if (!ambientDepth.isRecursive() || !requestedDepth.isRecursive()) {
// skip externals - either folder depth is not recursive,
// or requested depth is not recursive.
continue;
}