"Mehmet Birgi" <memo@otego.com> writes:
> C:\home\tmp\svn\project2>svn commit -m ""
> Deleting lib
>
> svn_error: #21002 : <A general problem occured>
> Commit succeeded, but other errors follow:
>
> apr_error: #22505, src_err 0 : <Access is denied. >
> Error bumping revisions post-commit (details follow):
>
> apr_error: #22505, src_err 0 : <Access is denied. >
> error removing administrative directory for C:/home/tmp/svn/project2/lib
>
> C:\home\tmp\svn\project2>
>
>
> </session-transcript>
I guess this is because the files under lib/.svn/ are read-only. The
directory is deleted by calling apr_dir_remove() on lib/. It appears
that somewhere we have to reset the read-only status.
We could put a recursive descent into svn_io_remove_dir to call
svn_io_set_file_read_write on all it's files. That would match the
behaviour of svn_io_remove_file. I'm not sure whether this code
really belongs in Subversion or whether it should be in APR, from my
Unix background I expect apr_remove_file/apr_remove_dir to just work.
>
> As this problem seems to be happening locally, on a win2000 system, I am not
> sure what permissions are being talked about here. Funny thing I noticed
> playing around: I also get access denials on some files when I try to delete
> them in the DOS-Box:
>
> <session-transcript>
>
> C:\home\tmp\svn\project2>del lib /s /q
> C:\home\tmp\svn\project2\lib\.svn\dir-wcprops
> Access is denied.
> C:\home\tmp\svn\project2\lib\.svn\entries
> Access is denied.
> C:\home\tmp\svn\project2\lib\.svn\format
> Access is denied.
> C:\home\tmp\svn\project2\lib\.svn\README
> Access is denied.
> C:\home\tmp\svn\project2\lib\.svn\auth\password
> Access is denied.
> C:\home\tmp\svn\project2\lib\.svn\auth\username
> Access is denied.
Looks like del won't delete read-only files either.
--
Philip
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri May 24 13:31:45 2002