SVN 外部和框架导出
我目前正在为客户开发一个框架。该框架基于 Zend Framework。目录结构是:
application : Application specific code application/modules/frontend : Application specific code application/modules/backend : Backend for MyFramework library/MyFramework : The custom framework library/Zend : The Zend framework public : Images, CSS, JavaScript test : Tests (also includes tests for MyFramework)
我需要找到一种方法来用 Subversion 管理这个项目。我们希望 MyFramework 和 Zend 从外部加载,因为客户端不需要更新此代码。应用程序和公共文件夹也应该从 Subversion 加载,但可以由客户端更改。
当客户开始开发新应用程序时,他们应该导出完整的文件夹结构:
svn export svn://complete_framework
需要导出是因为他们会将代码放入自己的 Subversion 中进行版本管理。进行导出时,Zend 和 MyFramework 的外部内容会丢失,因此需要添加它们。
Subversion 是否为此提供了任何解决方案,或者我们应该只编写一个 shell 脚本来进行导出并再次设置外部?
I'm currently working on a framework for a client. The framework is based upon Zend Framework. The directory structure is:
application : Application specific code application/modules/frontend : Application specific code application/modules/backend : Backend for MyFramework library/MyFramework : The custom framework library/Zend : The Zend framework public : Images, CSS, JavaScript test : Tests (also includes tests for MyFramework)
I need to find a way to manage this project with Subversion. We want MyFramework and Zend to load from externals, because the client doesn't need to update this code. The application and public folder should be loaded from Subversion too, but can be changed by the client.
When the client starts working on a new application they should do an export of the complete folder structure:
svn export svn://complete_framework
The export is needed because they will put the code in their own Subversion for version management. When doing the export, the externals to Zend and MyFramework are lost, so they need to be added.
Does Subversion offer any solution for this or should we just write a shell script which does the export and sets the externals again?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在您的测试用例中,分布式系统会更好。无论如何, svn export --ignore-externals ... 有助于解决问题吗?我没有几个存储库可以自己尝试。
A distribuited system would be much better in your test case. Anyway, does
svn export --ignore-externals ...
help to solve the issue? I don't have a couple of repositories to try it by myself.看看名为 供应商分支 的东西是否适合您的场景。
Look if thing called Vendor Branches fit your scenario.