Add a few more arguments to svn_wc__node_get_base() to make its results
more reliable and usable in update and lock scenarios when handling
replaced nodes.

* subversion/include/private/svn_wc_private.h
  (svn_wc__node_get_base): Update arguments and documentation.

* subversion/libsvn_client/commit_util.c
  (harvest_status_callback): Don't obtain parent directory revision if the node
    is added.

* subversion/libsvn_client/locking_commands.c
  (organize_lock_targets): Improve error reporting.

* subversion/libsvn_client/merge.c
  (calculate_remaining_ranges): Update caller.

* subversion/libsvn_client/mergeinfo.c
  (svn_client__get_wc_mergeinfo): Update caller.

* subversion/libsvn_client/update.c
  (update_internal): Check anchor base status instead of a combination of base
    and working.

* subversion/libsvn_client/util.c
  (svn_client__wc_node_get_base): Update caller.

* subversion/libsvn_wc/node.c
  (svn_wc__node_get_base): Handle new arguments.

* subversion/tests/cmdline/lock_tests.py
  (lock_path_not_in_head): Update expected error.

* subversion/tests/libsvn_wc/wc-test.c
  (test_node_get_base): Update caller.


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