Only hook access batons on the wc-db if we are going to return the baton to the caller. This should fix the POSIX-only test failure on update_tests.py 24. (This test doesn't test the intended behavior on Windows, because os.chmod() is not implemented in the same way there.)
Only hook access batons on the wc-db if we are going to return the baton
to the caller. This should fix the POSIX-only test failure on
update_tests.py 24. (This test doesn't test the intended behavior on
Windows, because os.chmod() is not implemented in the same way there.)

* subversion/libsvn_wc/lock.c
  (adm_access_alloc): Add steal lock argument and use it to check if the
     access baton contains anything usefull. Only in that case hook the
     access baton to the db and install a pool cleanup handler.
     Move comment on utf-8 initialization here, just in case.
  (svn_wc__adm_steal_write_lock): Pass intent to adm_access_alloc().
  (open_single): Don't install the pool cleanup handler here.


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

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