SVN propset svn:externals 错误 [英] SVN propset svn:externals Error

查看:50
本文介绍了SVN propset svn:externals 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过命令行将外部设置为特定版本.早些时候,当我将存储库 URL 用于我的源和目标时,我收到一个错误,表明我需要使用工作目录.我将目标文件夹更改为我的工作目录.我不想将 externed 文件夹添加到我的工作目录中(似乎没有必要).

注意事项:

  • http 替换为 htp 以避免超链接.
  • htps://svn.company.com/svn/Build = 外部文件夹的位置
  • C:/Subversion/Build/Tool = 设置 svn 属性svn:externals"的文件夹

这是我的语法:

svn propset svn:externals -- "-r611 htp://svn.company.com/svn/Build" "C:/Subversion/Build/Tool"

这是我得到的错误:SVN:E195005:

解析 svn:externals 属性时出错'C:/Subversion/Build/Tool:'-r611 htp://svn.company.com/svn/Build

对语法/错误原因的任何帮助表示赞赏

解决方案

  1. 外部文件夹的内容不会出现在您的WC中,除非您在定义外部对象后不执行svn up
  2. 必须至少阅读svn help ps(外部格式部分)
  3. 您至少遗漏了一个必需参数并错误地定义了第二个

用于命令

WC>svn propset svn:externals "https://subversion.assembla.com/svn/customlocations-greylink/trunk/Local Data" .

其中 WC 是存储库主干的工作副本的根我定义了当前目录 (.) 的目录子目录数据(之前不存在作为树中的真实文件夹)作为目录 /trunk 内容的 HEAD-revision 的容器/Local 来自外部仓库

如果是固定的外部-r NNN必须在URL前面添加

完整命令

svn propset svn:externals "-r611 htp://svn.company.com/svn/Build" 构建/工具

必须将修订版 611 处的 htp://svn.company.com/svn/Build 映射到 repo 文件夹中的文件夹 Build/Tool,链接到您的 WC (/trunk ?)

更简单的形式是将 svn:externals 的值写入文件并在 propset 中使用 -F 选项.如果 externals.txt 包含字符串

-r611 htp://svn.company.com/svn/Build

(这里没有双引号)

svn propset svn:externals -F externals.txt 构建/工具

将产生与上述命令相同的结果.附加值 - 对于永久路径,您始终可以使用相同的命令并仅更改外部文本文件

I am trying to set the external to a specific revision via command line. Earlier I got an error indicating that I needed to use the working directory when I used the repository URL for both my source and destination. I changed the destination folder to my working directory. I do not want to have the externed folder added to my working directory(seems it should be unnecessary).

Notes:

  • http replaced with htp to avoid hyperlinks.
  • htps://svn.company.com/svn/Build = location of the externed folder
  • C:/Subversion/Build/Tool = folder where the svn property 'svn:externals' is set

Here is my syntax:

svn propset svn:externals -- "-r611 htp://svn.company.com/svn/Build" "C:/Subversion/Build/Tool"

Here is the error I get: svn: E195005:

Error parsing svn:externals property on 'C:/Subversion/Build/Tool: '-r611 htp://svn.company.com/svn/Build

Any help with syntax/ cause of error is appreciated

解决方案

  1. External folder's content will not appear in your WC until you will not perform svn up after defining externals
  2. You must to read at least svn help ps (in the part of externals format)
  3. You miss at least one mandatory parameter and wrongly define second

For command

WC>svn propset svn:externals "https://subversion.assembla.com/svn/customlocations-greylink/trunk/Local Data" .

where WC is root of Working copy of repository-trunk I defined directory subdir Data (not existing before as real folder in tree) of current dir (.) as container for HEAD-revision for content of directory /trunk/Local from external repo

In case of fixed external -r NNN have to be added in front of URL

Full command

svn propset svn:externals "-r611 htp://svn.company.com/svn/Build" Build/Tool

must map htp://svn.company.com/svn/Build at the revision 611 to folder Build/Tool in repo-folder, linked to your WC (/trunk ?)

Easier form is writing value of svn:externals into file and using -F option in propset. If externals.txt contain string

-r611 htp://svn.company.com/svn/Build

(without double quotes here)

svn propset svn:externals -F externals.txt Build/Tool

will produce the same result as the above command. Added value - for permanent path you can always use the same command and change only extermal text-file

这篇关于SVN propset svn:externals 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆