On the remote-only-status branch: Use new queries that return only BASE
tree info to implement the remote-only status. Reverts most of r1583599.

* subversion/libsvn_wc/wc_db.h
  (svn_wc__db_base_read_info, svn_wc__db_base_read_info_fn_t): New.
  (svn_wc__db_read_children_info, svn_wc__db_read_single_info):
   Added base_tree_only parameter and updated docstrings.
* subversion/libsvn_wc/wc_db.c
  (read_info, read_children_info): Added base_tree_only parameter,
   and adjusted the implementation to use new queries that only
   scan the BASE tree in the wc.db if the parameter is set.
   Updated all callers.
  (read_single_info,
   svn_wc__db_read_single_info,
   svn_wc__db_read_children_info): Added base_tree_only parameter.
  (read_info_with_txn): New; renamed from svn_wc__db_read_info and
   added base_tree_only parameter.
  (svn_wc__db_read_info, svn_wc__db_base_read_info): Implemented
   as wrappers for read_info_with_txn.

* subversion/libsvn_wc/status.c:
   Updated all calls to svn_wc__db_read_children_info() and
   svn_wc__db_read_single_info().
  (assemble_status): Reverted changes made in r1583599.
  (get_dir_status): Likewise.
  (internal_status): Use svn_wc__db_base_read_info() when not scanning
   the working copy.
  (svn_wc_status3): Fixed thinko, pass the correct value to internal_status().

* subversion/libsvn_wc/wc-queries.sql
  (STMT_SELECT_BASE_NODE_INFO,
   STMT_SELECT_BASE_NODE_INFO_WITH_LOCK,
   STMT_SELECT_BASE_NODE_CHILDREN_INFO): New variants of existing statements
    that only scan the BASE tree, but otherwise return results in the same
    format.

* subversion/tests/libsvn_client/client-test.c
  (test_remote_only_status): Adjusted test results for new behaviour of
   remote-only status.

* subversion/libsvn_wc/copy.c,
  subversion/libsvn_wc/diff_editor.c,
  subversion/tests/libsvn_wc/op-depth-test.c:
   Update calls to svn_wc__db_read_children_info().


git-svn-id: https://svn.apache.org/repos/asf/subversion/branches/remote-only-status@1585988 13f79535-47bb-0310-9956-ffa450edef68