When bumping an updated tree don't assume the origin is always BASE, as this
same function should also used for recursive move updates.

* subversion/libsvn_wc/wc-queries.sql
  (STMT_SELECT_HAS_NON_FILE_CHILDREN,
   STMT_SELECT_HAS_GRANDCHILDREN): Make op_depth an argument. Limit results to help Sqlite.

* subversion/libsvn_wc/wc_db_update_move.c
  (depth_sufficient_to_bump): Order arguments properly. Add op_depth argument.
  (bump_moved_away): Update documentation for this and expected followup.


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