Improve the behaviour of 'svn patch' when a reject file cannot be created.
Improve the behaviour of 'svn patch' when a reject file cannot be created.

* subversion/libsvn_client/patch.c
  (write_out_rejected_hunks): Add 'root_abspath' argument. If the reject
   file cannot be created because an intermediate directory is missing,
   try to create the reject file in the working copy root instead.
   Previously, this was a fatal error condition and aborted patching.
   This problem can happen when trying to apply a patch to the wrong directory.
  (apply_patches): Pass root_abspath to write_out_rejected_hunks().


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

YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion