Subversions 自动属性中可以使用多行值吗?
是否可以在 .subversion/config 文件的 autoprops 部分创建包含多行值的属性?
这样它看起来像:
svn pg myprop
将输出
1st line of prop
2nd line of prop
Is it possible to create a property in the autoprops section of .subversion/config file which contains multiline values?
So that it would look like:
svn pg myprop
will output
1st line of prop
2nd line of prop
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不,看起来并非如此。
事实上,甚至不可能包含“;”在 autoprop 值中,不过预计 Subversion 1.7 会改变:
分号问题对于 svn:mime-type 属性来说很烦人:
哎呀。
有时像
.subversion/config
这样的格式会提供某种行延续:但是,Subversion 本身似乎并不遵循这样的约定。无论如何,它们不会帮助您,因为这种断线能力只会使一条逻辑线跨越多条物理线成为可能。一旦文件被解析,
foo
属性的值将不包含任何换行符。No, it doesn't appear so.
In fact it's not even possible to include ";" in a autoprop value, though that's expected to change with Subversion 1.7:
The semi-colon problem is irritating for
svn:mime-type
properties:Whoops.
Sometimes formats like
.subversion/config
provide some kind of line continuation:But, Subversion itself doesn't seem to follow such conventions. They wouldn't help you anyway, since this ability to break lines just makes it possible to span one logical line across multiple physical lines. The value of the
foo
property will not contain any line breaks once the file has been parsed.