如何处理受源代码控制的项目中的符号链接?
我们有几个 php 项目。这些项目使用 Zend Framework,我们还维护一个具有各种功能的通用核心库。
现在我的目录结构看起来像这样
project-1
\application
\model
\views
\controllers
\libraray
\Zend -> symlink to ../../libraries/Zend
\Core -> symlink to ../../libraries/Core
\Project1Lib
project-2
\application
\model
\views
\controllers
\libraray
\Zend -> symlink to ../../libraries/Zend
\Core -> symlink to ../../libraries/Core
\Project2Lib
libraries
\Zend
\Core
在 Subversion 中我似乎在符号链接方面遇到了麻烦,它添加了实际的文件(我在 Mac 上使用 Syncro)而不仅仅是符号链接。但这让我思考,我想知道布局项目的最佳方式是什么,以避免拥有相同库的多个副本?
We have several php projects. The projects use the Zend Framework and we also maintain a common core library with various functions.
Right now my directory structure looks like this
project-1
\application
\model
\views
\controllers
\libraray
\Zend -> symlink to ../../libraries/Zend
\Core -> symlink to ../../libraries/Core
\Project1Lib
project-2
\application
\model
\views
\controllers
\libraray
\Zend -> symlink to ../../libraries/Zend
\Core -> symlink to ../../libraries/Core
\Project2Lib
libraries
\Zend
\Core
In Subversion I seem to be having trouble with the sym links, it's adding the actual files (I'm using Syncro on the Mac) instead of just the sym links. But it got me thinking and I was wondering what the best way of laying out the project is in order to avoid having multiple copies of the same libraries?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
官方的 subversion 客户端可以处理 符号链接,但显然你的客户没有正确处理它们。
The official subversion client can deal with symlinks, but obviously your client doesn't handle them properly.