“svnlook propget”是否有效?工作?
好的,看看以下内容:
1: $ svnlook changed -r2 svn_repos/
_U trunk/
2: $ svnlook proplist -r2 -v svn_repos/ trunk
foo : bar
3: $ svnlook propget -r2 svn_repos/ foo trunk
4: $ svnlook propget -r2 svn_repos/ fooo trunk
svnlook: Property 'fooo' not found on path 'trunk' in revision 2
5: $
我正在使用 svnlook 命令,似乎有问题。第 1 行显示 trunk
上有属性更改。第 #2 行显示有一个名为 foo
的属性,其值为 bar
。我通过 svnlook proplist 命令做到了这一点。好的,到目前为止一切顺利。
第 3 行显示了属性 foo
上的 propget
的结果。它什么也不返回。如果我像在第 4 行那样拼写错误名称,它会告诉我找不到该属性。
我的理解是 svnlook propget 应该像 svn propget 一样打印属性的值。事实上:
$ svn propget -r2 foo file://$PWD/svn_repos/trunk
bar
完全按照我的想法去做。
我是不是错过了什么。我是不是做错了什么。或者 svnlook 命令有问题吗?
我需要将其用于 Subversion 挂钩,因此不可能使用 svn
代替 svnlook
。
Okay take a look at the following:
1: $ svnlook changed -r2 svn_repos/
_U trunk/
2: $ svnlook proplist -r2 -v svn_repos/ trunk
foo : bar
3: $ svnlook propget -r2 svn_repos/ foo trunk
4: $ svnlook propget -r2 svn_repos/ fooo trunk
svnlook: Property 'fooo' not found on path 'trunk' in revision 2
5: $
I'm using the svnlook command and seem to have a problem. Line #1 shows that there's a property change on trunk
. Line #2 shows that there's a property called foo
with a value of bar
. I did this via ths svnlook proplist
command. Okay, so far so good.
Line #3 shows the results of a propget
on property foo
. It returns nothing. If I mispell the name like I did on line #4, it tells me the property isn't found.
My understanding is that svnlook propget
is suppose to print the value of the property much like svn propget
does. In fact:
$ svn propget -r2 foo file://$PWD/svn_repos/trunk
bar
Does exactly what I think it should.
Am I missing something. Did I do something wrong. Or is there an issue with the svnlook
command?
I need this for a Subversion hook, so using svn
instead of svnlook
is not a possibility.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
发现问题了。这就是我在客户服务部门的朋友所说的代码 ID:“Ten-T”。
看第三行: 就是:提示符中
david
前面的bar
。当我将其发布到此处时,我删除了带有过于复杂提示的行。
Found the issue. It's what my friends in Customer Service call a Code ID: "Ten-T".
Look at the third line: There it is: The
bar
in front of thedavid
in my prompt.I removed the line with the overly complex prompts when I posted it here.
您是否需要包含存储库路径而不仅仅是 -r 开关?
http://svnbook.red-bean.com /en/1.5/svn.ref.svnlook.c.propget.html
do you need to include the repository path as opposed to just the -r switch?
http://svnbook.red-bean.com/en/1.5/svn.ref.svnlook.c.propget.html