简体   繁体   English

svn:externals命令,用于更改属性

[英]svn:externals command for changing a property

I am pulling some of my code into a folder through svn externals. 我通过svn externals将我的一些代码拉到一个文件夹中。 I know how to see the svn externals using "svn pget" command but not sure how to change the tag dependency from 2.0.0-b-21 to 2.0.0-b-22. 我知道如何使用“ svn pget”命令查看svn外部,但不确定如何将标记依赖性从2.0.0-b-21更改为2.0.0-b-22。 How can I do it through SVN command? 如何通过SVN命令执行此操作? I know how to do it through Windows TortoiseSVN but not through Unix. 我知道如何通过Windows TortoiseSVN而不是通过Unix来实现。

secdevapp03.gspt.net $ svn pget svn:externals http://devsvn.gspt.net/svn/components/store-analytics/myapp-analytics-rules/tags/2.0.0-b-21/src/main/resources/analyticsPlatform/myapp src/main/webapp/WEB-INF/analytics-platform-rules/myapp

Please guide. 请指导。

The documentation says : 该文件说:

In addition to the propset command, the svn program supplies the propedit command. 除了propset命令之外,svn程序还提供propedit命令。 This command uses the configured editor program (see the section called “Config”) to add or modify properties. 该命令使用已配置的编辑器程序(请参见“ Config”一节)来添加或修改属性。 When you run the command, svn invokes your editor program on a temporary file that contains the current value of the property (or which is empty, if you are adding a new property). 运行命令时,svn在包含属性当前值(如果要添加新属性的情况下为空)的临时文件上调用编辑器程序。 Then, you just modify that value in your editor program until it represents the new value you wish to store for the property, save the temporary file, and then exit the editor program. 然后,您只需在编辑器程序中修改该值,直到它代表您要为该属性存储的新值,保存临时文件,然后退出编辑器程序。 If Subversion detects that you've actually changed the existing value of the property, it will accept that as the new property value. 如果Subversion检测到您实际上已经更改了该属性的现有值,它将接受该值作为新的属性值。 If you exit your editor without making any changes, no property modification will occur: 如果不进行任何更改就退出编辑器,则不会进行属性修改:

svn propedit svn:externals src/main/webapp/WEB-INF/analytics-platform-rules/myapp

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

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