Storing file permissions in Subversion repository

前端 未结 12 1315
情话喂你
情话喂你 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 21:18

    Graham, svn doesn't store permissions. Your only option is to wrap your call to svn in a script. The script should call svn with its arguments, then set the permissions afterward. Depending on your environment, you might need to call your script svn and tweak your PATH to ensure it gets called.

    I quite like morechilli's idea to have the list of files and permissions checked into the repository itself.

提交回复
热议问题