final long revision2, final SVNRepository repository, final SVNDepth depth) throws SVNException {
final List childrenWithMergeInfo = children == null ? new LinkedList() : children;
ISVNEntryHandler handler = getMergeInfoEntryHandler(mergeSrcPath, sourceRootURL, revision1, revision2, repository, depth, childrenWithMergeInfo);
if (entry.isFile()) {
handler.handleEntry(myTarget, entry);
} else {
myWCAccess.walkEntries(myTarget, handler, true, depth);
}
Collections.sort(childrenWithMergeInfo);