简体   繁体   English

乌龟SVN中缺少SVN外部属性

[英]SVN externals property is missing in Tortoise SVN

Why is it when I right-click on a folder in Tortoise SVN, click on Properties and then Click 'New...' in the property name dropdown, the svn:externals is missing? 为什么右键单击Tortoise SVN中的文件夹,单击“属性”,然后在属性名称下拉列表中单击“新建...”,为什么svn:externals丢失了?

I'm new to subversion/tortoise. 我是Subversion /乌龟的新手。 However I want to evaluate the software. 但是我想评估该软件。 I wanted to try out the externals feature but I'm stumped at the first hurdle. 我想尝试一下外部功能,但首先遇到了困难。

If I enter svn:external manually and then set the folder to point to the 'trunk' folder, I get the following error: Error parsing svn:externals property on 'file:///...' etc. 如果我手动输入svn:external,然后将文件夹设置为指向“ trunk”文件夹,则会出现以下错误:解析“ file:/// ...”上的svn:externals属性时出错。

Where am I going wrong? 我要去哪里错了?

I recommend you re-install TortoiseSVN. 我建议您重新安装TortoiseSVN。 The svn:externals option should be the third one listed in the dropdown (with the current version 1.6.7), when you go to add a new property. 当您添加新属性时,svn:externals选项应该是下拉列表中列出的第三个选项(当前版本为1.6.7)。

Note: This option is visible when adding the property to your working folder, not when using repo-browser. 注意:在将属性添加到工作文件夹时(而不是在使用回购浏览器时),此选项才可见。 I am not sure why TortoiseSVN makes this distinction, since the externals references do get committed to the repo. 我不确定为什么TortoiseSVN会做出这种区分,因为外部引用确实会提交到存储库中。

I am guessing the reason your file:/// reference is failing is that when doing it through repo-browser, the SVN server (which is what you are actually making the change on at this point) is not able to see your local file system. 我猜测您的file:///引用失败的原因是,通过repo-browser进行操作时,SVN服务器(这是您此时实际进行的更改)无法看到您的本地文件系统。

In general, I recommend that you makes changes in your working folder rather than directly on the repo via repo-browser. 通常,我建议您在工作文件夹中进行更改,而不是直接通过repo-browser在repo上进行更改。 This way you can make sure you get things right before you commit. 这样,您可以确保在提交之前正确处理所有事情。

You can read up more on externals here . 您可以在此处阅读有关外部的更多信息

I believe your problem is at specifying the Property value . 我相信您的问题在于指定Property值
Probably you're missing the name of the external folder. 可能您缺少外部文件夹的名称。
When you open window for adding the properties, as a 'Property Name' enter svn:externals and as a 'Property Value' enter the name you want to give to the external folder followed by the path to your repository. 当您打开用于添加属性的窗口时,作为“属性名称”输入svn:externals ,作为“属性值”输入要提供给外部文件夹的名称,然后输入存储库的路径。
Example: MyExternalFolderName file:///... 示例: MyExternalFolderName文件:/// ...

Then after you update your Working dir, SVN will create new directory with name MyExternalFolderName and will copy files from 'file:///...' 然后,在更新工作目录之后,SVN将创建名为MyExternalFolderName的新目录,并将复制'file:/// ...'中的文件。

You should enter "svn:externals" (notice the plural). 您应该输入“ svn:externals”(注意复数)。 There are some versions of Tortoise that don't display this property. 有些版本的Tortoise不显示此属性。 Please post your properties content so we can better understand what may be happening. 请发布您的房地产内容,以便我们更好地了解可能发生的情况。

Right click-> tortoise svn -> properties, new and select svn:externals 右键单击->乌龟svn->属性,新建并选择svn:externals

Is you wanna add it to the context, simply do: 您是否要将其添加到上下文中,只需执行以下操作:

Right click-> tortoise svn -> settings 右键单击->乌龟SVN->设置

In the general tab, select context menu and mark properties 在常规选项卡中,选择上下文菜单并标记属性

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

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