简体   繁体   English

SVN相关路径外部

[英]SVN relaltive path externals

I have a repository of tools I have written in php and a repository of application code which will use them. 我有一个我用php编写的工具库和一个将使用它们的应用程序代码库。 I want the two folders to end up on the same level when I check them out. 当我检查出来时,我希望这两个文件夹最终处于同一级别。 I tried to accomplish this by setting the svn:externals property for the application folder to 我试图通过将应用程序文件夹的svn:externals属性设置为来完成此操作

../toolkit http://(toolkit repo url)/

but apparently it can't do this with relative paths. 但显然它不能用相对路径做到这一点。 I do not want the toolkit folder to be inside the application folder, I want them on the same level but doing 我不希望工具包文件夹在应用程序文件夹中,我希望它们在同一级别上但是要做

toolkit http://(toolkit repo url)/

will put the toolkit inside the application folder. 将工具包放在应用程序文件夹中。 Anyone know how I can do what I am trying to do here? 谁知道我怎么能做我想做的事情? (If it matters, I am doing this from the command line not tortise svn or some other program) (如果重要的话,我是从命令行执行此操作而不是侵犯svn或其他程序)

If I understand you correctly, then you want to achieve the following folder structure after adding the svn:externals property: 如果我理解正确,那么你想在添加svn:externals属性后实现以下文件夹结构:

 C:\\SvnCheckouts\\MyApplication\\ src\\ toolkit\\ 

... with toolkit\\ being added as a result of the external. ...由于外部而添加了toolkit\\ In that case, you should add the external to the MyApplication\\ folder. 在这种情况下,您应该将外部添加到MyApplication\\文件夹。

If you're trying instead to add the external to the src\\ folder, then you're out of luck because, although the following is a valid external definition ... 如果您正尝试将外部添加到src\\文件夹,那么您运气不好,因为尽管以下是有效的外部定义...

http://(toolkit repo url)/ ..\\toolkit

... SVN will strip the slash and create a folder within src\\ named ..toolkit (notice that I've placed the URL before the name of the intended external folder, as per best practice). ... SVN将剥离斜杠并在src\\ named ..toolkit创建一个文件夹(请注意,我已根据最佳实践将URL放在预期外部文件夹的名称之前)。

Hope this helps. 希望这可以帮助。

我发现我想要做的事情在SVN 1.6中是完全合法的,但我试图在SVN 1.4中这样做,所以我所要做的就是升级到更新的版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM