Cleanup: Remove code duplication by using svn_wc_create_tmp_file2 for temp file generation.
Cleanup: Remove code duplication by using svn_wc_create_tmp_file2 for
temp file generation.

* subversion/libsvn_wc/diff.c
  (file_baton): Add a field to cache the generated temp file name.
  (apply_textdelta): Use svn_wc_create_tmp_file2 to create a file which
  will be cleaned up on pool cleanup; it has this capability built in.
  (close_file): Use the path obtained from the file baton.


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

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