[ Note from the future: This was reverted in r39421, and redone in r39422. ]
[ Note from the future: This was reverted in r39421, and redone in r39422. ]

Fix issue #3475, "svn patch clears executable bit of patched files"

* subversion/libsvn_client/patch.c
  (patch_target_t): New member 'executable'.
  (init_patch_target): Initialise new member.
  (apply_one_patch): If applicable, set executable bit on patch target
   after successfully patching it.

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