SVN permissions for a single file

2019-07-06 23:17发布

问题:

Is it possible in SVN to set write permission for a single file, while all the rest of the repository is read only.

回答1:

No, it is not possible to set permissions on file level. You either can use a pre-commit hook, or if you use svn 1.6, you can move the file into a new directory and place a file external in your old directory. You can then modify the permissions on the new directory.

Note that file externals are working only on text files. binary files are not supoorted at the moment.



回答2:

Another possibility is the pre-commit hook script.



回答3:

you could try doing it with apache location if your accesing via webdav