Resolve the issue reported as issue #4436, where a revert of a specific
move case fails. Add XFail tests for a related case where a move is
accidentally turned into a copy.

* subversion/libsvn_wc/wc-queries.sql
  (STMT_SELECT_MOVED_OUTSIDE): Add op_depth column to result.

* subversion/libsvn_wc/wc_db.c
  (db_base_remove): Extend TODO comment.
  (op_revert_txn,
   op_revert_recursive_txn): Pass the op-depth of the row to revert.

* subversion/libsvn_wc/wc_db.h
  (svn_wc__db_resolve_break_moved_away): Document definition failure.

* subversion/libsvn_wc/wc_db_private.h
  (svn_wc__db_resolve_break_moved_away_internal): Document function and add
    argument.

* subversion/libsvn_wc/wc_db_update_move.c
  (svn_wc__db_resolve_break_moved_away_internal): Use an explicit op-depth.

* subversion/tests/cmdline/revert_tests.py
  (revert_move): Remove test that now only duplicates a test in
    op-depth-tests.c that is more thorough.

* subversion/tests/libsvn_wc/op-depth-test.c
  (move_child_to_parent_revert): Verify result after reverting.
  (move_abspath_more_than_once): New test.
  (test_funcs): Remove XFail marker from move_child_to_parent_revert and
    add move_abspath_more_than_once as XFail.


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