When handling working copy deletes, fix moved-to in all layers instead of
just in the top layer (as move sources can be replaced). Also remove
specifics on whether the top-layer is a directory as that kind of
checks doesn't work when we replace a directory with a file.

* subversion/libsvn_wc/wc-queries.sql
  (STMT_SELECT_MOVED_PAIR2): Include node itself and look in all layers.

* subversion/libsvn_wc/wc_db.c
  (delete_node): Use updated STMT_SELECT_MOVED_PAIR2 for both not moved before
    and moved before cases. Fix the to be deleted layer even when moving.

* subversion/tests/libsvn_wc/op-depth-test.c
  (move_to_swap): Update expected result: the move is remembered, so the move
    back detection works properly now.
  (test_list): Remove XFail marker from delete_over_moved_away.


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