2

我将我的 TFS(MyTFSServer)服务器迁移到另一个 TFS 服务器(MyNewTFSServer)。在此迁移中,我已将数据库从旧服务器恢复到新服务器,并且一些文件被锁定在旧服务器工作区中。在从 TFS2010 迁移到带有签出文件的 TFS2012 时,每个待处理文件的状态都会与源代码一起迁移

所以现在我如何在我的新服务器中解锁这些文件。旧服务器被删除。当我试图签出文件时,它说另一个用户已经签出了这个文件。出现以下错误:

Microsoft Visual Studio
Unable to perform operation on $/myproject/code/myfile.cs. The item $/myproject/code/myfile.cs is locked in workspace Dalvir-PC;dsing.
No files checked in.

但是该文件已在旧 TFS 服务器(MyTFSServer)中签出,现在我在新 TFS(MyNewTFSServer)上有名为“dalvir”的新用户。我无法签出和签入文件。

请帮我摆脱这个。

提前致谢。

4

1 回答 1

1

It doesn't matter if they were checked out in the old server or in the new one. For such administrative task I use TFS Sidekicks http://www.attrice.info/downloads/index.htm#tfssidekicks2012, which is for free use. You need admin rights to do task like undoing checkouts for other users. In Sidekicks use the Status Sidekick and search for the checkouts you want to undo.

Another option would be tf.exe using the undo command:

tf undo [/workspace:workspacename[;workspaceowner]]
    [/recursive] itemspec [/noprompt] [/login:username,[password]]
    [/collection:TeamProjectCollectionUrl]
于 2013-05-06T14:14:18.020 回答