Follow up r26957: avoid opening the text-base file for writing unless we're  actually going to write to it. In update_tests.py 37 we're copying the  text-base from another file, which - because of the already opened target  file - will fail on Windows with an 'Access Denied' error.
Follow up r26957: avoid opening the text-base file for writing unless we're 
actually going to write to it. In update_tests.py 37 we're copying the 
text-base from another file, which - because of the already opened target 
file - will fail on Windows with an 'Access Denied' error.

* subversion/libsvn_wc/update_editor.c
  (add_file_with_history): only open textbase_file for writing when we will 
   fetch it from the repository, not if we're copying from another text-base.


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

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