Fix issue #2842: filter ambient depth as well as requested depth. (This is also part of issue #695.)
Fix issue #2842: filter ambient depth as well as requested depth.
(This is also part of issue #695.)

* subversion/libsvn_wc/update_editor.c
  (struct edit_baton): Change 'depth' to 'requested_depth'.
  (struct dir_baton, struct file_baton): Add new 'ambient_depth' fields.
  (make_dir_baton, make_file_baton): Flag whether or not this baton is
    the end of the line by setting the depth field appropriately.
    Return new baton by reference, to enable returning an error
    directly if the new code raises an error.  In make_dir_baton, set
    the depth to svn_depth_unknown if it is to be corrected later.
  (open_directory, open_root, add_file_with_history, delete_entry,
   change_dir_prop, close_directory, absent_file_or_dir, apply_textdelta,
   change_file_prop): Adjust for above.
  (add_directory, open_file, add_file): Same.  Note that this changes
    the semantics slightly: previously, the new baton pointer might
    have remained untouched if we returned early due to an error,
    whereas now it will definitely have been set.  I don't think any
    callers care about this; the previous behavior was just an
    accident of how the code was written.


git-svn-id: f8a4e5e023278da1e04e203c7fe051e3c4285d88@867105 13f79535-47bb-0310-9956-ffa450edef68

wbond/subversion,wbond/subversion,wbond/subversion,YueLinHo/Subversion,wbond/subversion,wbond/subversion,YueLinHo/Subversion,YueLinHo/Subversion,wbond/subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,wbond/subversion,YueLinHo/Subversion,YueLinHo/Subversion