Allow depth limited reverts of nodes that have excluded or not present
children, and avoid db query for things that will never exist.

(A delete-delete tree conflict that isn't placed on an existing node
 can't have descendants)
* subversion/libsvn_wc/wc-queries.sql
  (STMT_SELECT_GE_OP_DEPTH_CHILDREN): Check for children that are there.
  (STMT_ACTUAL_HAS_CHILDREN): Remove unused statement.

* subversion/libsvn_wc/wc_db.c
  (op_revert_txn): Remove unneeded query.


git-svn-id: https://svn.apache.org/repos/asf/subversion/branches/1.9.x-update-tc-detection@1662089 13f79535-47bb-0310-9956-ffa450edef68
2 files changed