Remove some path-accessing functions in favor of stream-accessing functions in the add_file_with_history() function. A bunch of other stream copies were simplified by using the new copy3() variant.
Remove some path-accessing functions in favor of stream-accessing
functions in the add_file_with_history() function. A bunch of other stream
copies were simplified by using the new copy3() variant.

Note: a somewhat unrelated change is that the code longer bothers to copy
permission flags onto things being placed into the temp area or text base.
This code (rightly) assumes that the perms will be set properly when the
file is installed into ACTUAL.

* subversion/libsvn_wc/update_editor.c:
  (add_file_with_history): use svn_stream_open_unique() to place a file
    that contains the text base of the file being copied (instead of
    svn_wc_create_tmp_file2). use get_revert_contents or
    get_pristine_contents to get a source stream, instead of their path-
    based equivalents, then use copy3() to copy their contents over.
    When fetching from the repository, simplify all of the logic -- we
    already have a target stream to write into.
  (close_file): simplify code by using svn_stream_copy3(). no longer copy
    permissions from the copied text base to the new text base.
  (svn_wc_add_repos_file3): simplify by using copy3()

jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion