将 SVN 外部检出到当前 WC 的根目录
我正在尝试将外部存储库签出到我当前的工作副本。 这是我的设置: 当前工作副本
D:\working_copy\
外部路径
D:\external_working_copy\uploads
然后我将 svn:external 属性设置为 D:\working_copy\:
上传文件:///D:/SVN/external_working_copy/trunk/uploads
那么如果我在 D:\working_copy\ 上运行更新,我会得到以下内容:
D:\working_copy\uploads
但我希望 file:///D:/SVN/external_working_copy/trunk/uploads 的内容转到 D:\working_copy\ 的根目录,而不是在 D:\working_copy 内创建上传。
我尝试设置为
/file:///D:/SVN/external_working_copy/trunk/uploads
但我得到的一切是:
“D:\working_copy”上的 svn:externals 属性无效:目标“/”是绝对路径或涉及“..”
提前谢谢
I'm trying to checkout a external repository to my current working copy.
This is my setup:
Current Working Copy
D:\working_copy\
External Path
D:\external_working_copy\uploads
Then I setup the svn:external property to D:\working_copy\:
uploads file:///D:/SVN/external_working_copy/trunk/uploads
then if I run update on D:\working_copy\ I got the following:
D:\working_copy\uploads
but I want the content of file:///D:/SVN/external_working_copy/trunk/uploads to go to the root of D:\working_copy\ and not create uploads inside D:\working_copy.
I have tried to set as
/ file:///D:/SVN/external_working_copy/trunk/uploads
but everything I got is:
Invalid svn:externals property on 'D:\working_copy': target '/' is an absolute path or involves '..'
Thank you in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你不能这样做,原因很明显。当您添加一个新文件时,它会如何决定是否应该将其放入一个存储库或另一个存储库中?如果您想将工作副本的根目录指向其他位置,您可以直接签出其他位置吗?
You can't do this, for an obvious reason. How would it decided when you add a new file if it should go in one repository or the other? If you want to point the root of your working copy to the other location, you can just checkout the other location instead?
尝试使用
.
或./
作为外部定义中的本地路径。即便如此,我认为这不会起作用。Try using
.
or./
as the local path in the external definition. Even then though, I dont think it will work.