Storing file permissions in Subversion repository

前端 未结 12 1235
情话喂你
情话喂你 2020-12-01 20:57

How do you store file permissions in a repository? A few files need to be read-only to stop a third party program from trashing it but after checking out of the repository t

12条回答
  •  独厮守ぢ
    2020-12-01 20:59

    There's no native way to store file permissions in SVN.

    Both asvn and the patch from that blog post seem to be up (and hosted on the official SVN repository), and that's a good thing, but I don't think they will have such metadata handling in the core version any time soon.

    SVN has had the ability to handle symbolic links and executables specially for a long while, but neither work properly on Win32. I wouldn't hold my breath for another such non-portable feature (though it wouldn't be too hard to implement on top of the already existing metadata system.)

    I would consider writing a shell script to manually adjust file permissions, then putting it in the repository.

提交回复
热议问题