无法在 TFS2012 中列出标签 [英] Unable to list labels in TFS2012

查看:29
本文介绍了无法在 TFS2012 中列出标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们最近迁移到 TFS2012,但仍在使用 VS2008.除了标签外,一切正常.似乎应用标签有效,并在获取源文件时使用标签.但是,列出标签不会返回任何内容.

We recently migrated to TFS2012, but are still using VS2008. Everything is working fine except for labels. It appears that applying labels works, and using a label when getting source works. However, listing labels returns nothing.

例如:

tf label "LabelName" *.* /r

将返回创建的标签LabelName@$/Scope"

will return "Created label LabelName@$/Scope"

如果紧随其后

tf labels /owner:*

结果是未找到标签"

最后,尝试检索标签工作正常.

Finally, trying to retrieve the label works correctly.

tf get . /version:L"LabelName"

将返回文件的预期版本,并且

will return the expected version of the files, and

tf label /delete "LabelName"

返回已删除标签 LabelName@$/Scope"

returns "Deleted label LabelName@$/Scope"

机器上安装了VS2012,但我们还没有正式"升级,行为是一样的.从 VS2008 和 VS2012 的 IDE 中列出标签也没有显示标签.

VS2012 is installed on the machine, but we haven't "officially" upgraded, and the behavior is the same. Listing labels from the IDE of both VS2008 and VS2012 shows no labels as well.

有没有其他人遇到过类似的情况?任何建议表示赞赏.

Anyone else experience anything similar? Any suggestions are appreciated.

推荐答案

经过进一步的反复试验,我发现 @scope 选项不是可选的.如果我像这样创建标签 -

After futher trial and error, I've found that the @scope option isn't optional. If I create the label like this -

tf label LabelName@$/Server/Path *.* /r

在发出 tf labels 命令时我能够看到标签.在其他命令中使用标签时,可以简单地引用为 LabelName,@scope 似乎不是必需的.

I am able to see the label when issuing the tf labels command. When using the label in other commands, it can be referenced simply as LabelName, the @scope doesn't seem to be required.

这篇关于无法在 TFS2012 中列出标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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