外部目录上的 svn external
我在项目中有这个 svn:external 文件:
Silex https://github.com/fabpot/Silex/trunk Silex/vendor/Symfony/Component/BrowserKit https://github.com/symfony/BrowserKit/trunk Silex/vendor/Symfony/Component/ClassLoader https://github.com/symfony/ClassLoader/trunk Silex/vendor/Symfony/Component/CssSelector https://github.com/symfony/CssSelector/trunk Silex/vendor/Symfony/Component/DomCrawler https://github.com/symfony/DomCrawler/trunk
当我在外部目录中执行 svn update
时,我收到此 svn 错误: svn: warning: Unable to lock 'Silex/vendor/Symfony /Component'
有一种方法可以将 svn:external 检出到另一个 svn:external 拥有的目录中吗?
I have this svn:external file in a project:
Silex https://github.com/fabpot/Silex/trunk Silex/vendor/Symfony/Component/BrowserKit https://github.com/symfony/BrowserKit/trunk Silex/vendor/Symfony/Component/ClassLoader https://github.com/symfony/ClassLoader/trunk Silex/vendor/Symfony/Component/CssSelector https://github.com/symfony/CssSelector/trunk Silex/vendor/Symfony/Component/DomCrawler https://github.com/symfony/DomCrawler/trunk
when I do a svn update
in the external directory I get this svn error: svn: warning: Unable to lock 'Silex/vendor/Symfony/Component'
There is a way to checkout an svn:external into a directory owned by another svn:external?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不,这是不可能的。阅读“外部定义”部分来自SVN红皮书。在那里您会发现以下通知:
但是,应该可以使用这样的外部定义:
因此,由 svn:externals 创建的目录不会因创建其他外部目录而存在。
No, it is not possible. Read the section "Externals Definition" from the SVN Red Book. There you will find the following notice:
However, it should be possible to use an externals definition like that:
So your directories created by
svn:externals
do not exist by the creation of other externals directories.我认为您想要做的是在 fabpot/Silex/trunk 存储库而不是此存储库中声明组件外部。
I think what you'll want to do is declare the Component externals in the fabpot/Silex/trunk repo instead of this repo.