Team Explorer Everywhere命令行无法签入

时间:2015-03-24 23:29:18

标签: team-explorer-everywhere

当我尝试执行checkin命令时,我收到错误No changes were matched by any arguments,但该文件实际上已被更改!罪魁祸首似乎是TEE在编辑时没有自动检出文件,即使MSDN似乎暗示它应该有(source)。

好的大不了,所以我试着检查文件而不知道我必须再次进行更改。但是这一次我收到了一个新错误:

An error occurred: TF400032: The operation could not be completed because the workspace 
WORKSPACE_NAME is a local workspace.

当我尝试做其他事情时,事情会变得更奇怪,比如简单的添加;它给出了同样的错误!似乎我唯一能做的就是使用tf get将所有内容更新到最新版本。

我在几次尝试后不知所措: (现在我无法对服务器进行任何更改)

  1. 使用vim修改过的文件。 tf status未报告更改
  2. 尝试了tf checkin file.mtf checkin file.m -force,两者均未报告任何变化
  3. 尝试tf get file.m,但报告该文件是最新的。尝试tf get file.m -force,这次它正确地用服务器版本
  4. 替换了文件
  5. 尝试了tf checkout file.m,但它报告了有关本地工作区的错误消息
  6. 尝试了tf add file.m,但它报告了有关本地工作区的相同错误消息
  7. 以下是我的设置的一些细节:

    • 操作系统:Red Hat Enterprise Server 6.5版(圣地亚哥)
    • TEE版本:TEE-CLC-12.0.2
    • TF_AUTO_SAVE_CREDENTIALS在bash中设置
    • 工作区设置为:

      tf workspace -new "WORKSPACE_NAME" -collection:https://example.visualstudio.com/defaultcollection
      tf workfold -map "$/example_folder" -workspace:"WORKSPACE_NAME" "~/example_folder/"
      

1 个答案:

答案 0 :(得分:0)

I'm not sure if it is relevant in your case, but for me that was the issue:

If you are connected to a cluster, with multiple computers/servers, the workspace is created for the specific server you were logged in to (although the storage is probably shared).

This results in the workspace having a computer name that mismatches the computer name from which you'd might later check in your file.

The only solution I found so far is to connect to the specific node which I was running the creation of the workspace and work from that node. (or to upload the edited file using the web interface). Same issue will rise if you work locally, but changed your computer name or any related configuration (domain for example).

Hope it helps...