为什么 tf merge /candidate 不显示挂起的合并,而 Visual Studio 显示?

Why does tf merge /candidate doesn't show pending merges while Visual Studio does?

当我在 Visual Studio 上列出 Branch1 和 Branch2 之间的未决合并时,它会显示它们。但是如果我使用 tf 则不会。 我用来列出我与 TF 的未决合并的命令是:

tf merge /candidate Branch1 Branch2

然后我得到

There are no changes to merge.

为什么 TF 没有显示待处理的合并?

我正在使用 Visual Studio 2013 和 TFS 2013。

需要加上/recursive标志,否则tf merge只会比较文件夹,不会检查子元素

当然你需要在工作区的正确位置,才能运行命令。