更新时间:2023-12-01 23:50:58
我觉得不可能完全按照你的意愿去做,就是让大家看看http://example.com/svn/repos/ 并且根据您的身份,您会看到不同的内容.
I don't think it's possible to do exactly what you want, which is to let everyone check out http://example.com/svn/repos/ and depending on who you are you see different things.
拒绝访问文件夹,您走在正确的轨道上.您可以做的是为某些开发人员创建一个视图"文件夹.假设你所有的项目看起来都像
You are on the right track by denying access to the folders. What you can do is to create a "view" folder the certain developers. Suppose all your projects look like
http://example.com/svn/repos/projects/
+- References
+- Project1
+- Project2
添加另一个名为视图的文件夹结构.
Add another folder structure called views.
http://example.com/svn/repos/
+ projects/
+- References
+- Project1
+- Project2
+ views/
+- View1
views
和 View1
都是普通文件夹.技巧是设置 svn:externals
View1
文件夹上的属性到 http://example.com/svn/repos/projects/References 和 http://example.com/svn/repos/项目/项目1.当有人检出 View1
时,它也会检出它下面的 References
和 Project1
.我希望这会有所帮助.
Both views
and View1
are nothing but plain folders. Trick is to set svn:externals
properties on View1
folder to http://example.com/svn/repos/projects/References and http://example.com/svn/repos/projects/Project1. When someone checks out View1
, it will also checkout References
and Project1
under it. I hope this helps.