Following up on r1536350 update the detection logic of moves affected by the
delete operation to properly find moves 'through' the to be deleted nodes.

This resolves the assertion triggered by r1536350, by no longer updating nodes
that are not in the database. The proper handling for these node is left as
a TODO for a separate patch.

* subversion/libsvn_wc/wc-queries.sql
  (STMT_SELECT_MOVED_FOR_DELETE): Extend query to directly report nodes that
    were moved in.

* subversion/libsvn_wc/wc_db.c
  (delete_node): Only clear move information after checking for to be updated
    moves. Update logic to use nested ifs and add a branch for the case where
    moves outside the delete range must be updated when the delete is not a
    move.

* subversion/tests/libsvn_wc/op-depth-test.c
  (move_twice_within_delete): New test, testing a case where multiple moves
    must be handled.
  (test_funcs): Add move_twice_within_delete.


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