With ra_neon, unlocking a file succeeds in client side, though pre-unlock hook exits with non-zero return code. Make sure the error is returned to the user in case of any failures. * subversion/libsvn_ra_neon/lock.c (do_unlock): Change SVN_NO_ERROR return to "svn_error_return". * subversion/tests/cmdline/lock_tests.py (block_unlock_if_pre_unlock_hook_fails): New test. (test_list): Add block_unlock_if_pre_unlock_hook_fails to the list. Patch by: Vijayaguru G