Following up on r1567204, only look for moved children to patch in the op-depth
layers that we are about to delete. Before this patch we accidentally applied
move information from lower layers to the WORKING layers and (in the tests) then
overwrote that bad information with what should be there.

So this patch really avoids doing work that shouldn't be done.

This makes all our tests pass with the SVN_SQLITE_REVERSE_UNORDERED_SELECTS
flag.

* subversion/libsvn_wc/wc_db.c
  (delete_node): Use the delete depth for selecting the nodes instead of the
    current op-depth of the node that we are about to delete. This avoids
    looking at completely uninteresting layers.


git-svn-id: https://svn.apache.org/repos/asf/subversion/trunk@1567228 13f79535-47bb-0310-9956-ffa450edef68