如何访问已退出审核/签入某些更改的员工的TFS工作区?

时间:2023-01-24 14:52:46

One of my co-workers has resigned and was made to leave the premises before checking in all of his code to TFS. I have access to the physical files. Is there a way for me to access his workspace and check in some of the changes that are still left unchecked in? From tfs I can see which files he has checked out but no way of seeing the exact changes unless very manually.

我的一位同事已经辞职,并在将所有代码签入TFS之前离开了办公场所。我可以访问物理文件。有没有办法让我访问他的工作区并检查一些仍未选中的更改?从tfs我可以看到他检查了哪些文件,但除非非常手动,否则无法看到确切的更改。

5 个解决方案

#1


11  

In TFS 2010, there is a new feature called 'Public Workspaces'. This allows multiple people to share the same workspace folders on a computer, but authenticating to TFS using their own logon.

在TFS 2010中,有一项名为“公共工作区”的新功能。这允许多个人在计算机上共享相同的工作区文件夹,但使用他们自己的登录对TFS进行身份验证。

A TFS administrator can change a workspace to a 'Public Workspace' by running a command like the following:

TFS管理员可以通过运行如下命令将工作区更改为“公共工作区”:

tf workspace /collection:http://yourserver:8080/tfs/yourCollection WorkspaceName;domain\CurrentWorkspaceOwner /permission:Public

(This command can be run on any computer, it doesn't need to be run on the same computer as the workspace you are trying to change)

(此命令可以在任何计算机上运行,​​它不需要与您尝试更改的工作区在同一台计算机上运行)

If there is only one other user that needs to use the workspace, perhaps a simpler method is to just change the owner of the workspace. This can be done by a TFS administrator with the following command:

如果只有一个其他用户需要使用工作空间,则更简单的方法可能只是更改工作空间的所有者。这可以由T​​FS管理员使用以下命令完成:

tf workspace /collection:http://yourserver:8080/tfs/yourCollection WorkspaceName;domain\CurrentWorkspaceOwner /newowner:domain\NewWorkspaceOwner

Once you have done either of these things, you can logon to that computer as the new owner and use the workspace as if it were your own.

完成上述任一项操作后,您可以作为新所有者登录该计算机,并使用工作区,就好像它是您自己的一样。

You can read more about this feature in this blog post TFS2010: Public Workspaces.

您可以在此博客文章TFS2010:Public Workspaces中阅读有关此功能的更多信息。

#2


4  

1) Copy the files from his machine.

1)从他的机器复制文件。

2) Administratively undo his checkout.

2)行政撤销他的结账。

3) Check out the files on your machine.

3)检查机器上的文件。

4) Overwrite your files with his files.

4)用他的文件覆盖你的文件。

5) Your machine state should now roughly equal his; do as many comparisons as you want.

5)你的机器状态现在应该大致等于他的;尽可能多地进行比较。

#3


2  

Have your sys-admin reset the users password to a known value, login as the user on that machine and voila, you are the user...

让您的sys-admin将用户密码重置为已知值,以该计算机上的用户身份登录,瞧,您是用户......

#4


1  

This is probably a quick and dirty way of doing it:

这可能是一种快速而肮脏的方式:

  • Shelve or check-in your own work.
  • 搁置或登记自己的工作。

  • Copy the relevant files from your co-worker into your own workspace
  • 将相关文件从您的同事复制到您自己的工作区

  • Compare the files with latest in TFS
  • 将文件与TFS中的最新文件进行比较

//huusom

#5


0  

You could use some diff tool like beyond compare to visualise the actual differences.

您可以使用一些比较无法比较的差异工具来可视化实际差异。

To manage others' workspaces and even checked out files it is hard to beat Team Sidekicks, which is free and provides brilliant interface for this and many other routine TFS work.

为了管理他人的工作空间甚至检查文件,很难击败Team Sidekicks,这是免费的,并为此和许多其他常规TFS工作提供了出色的界面。

#1


11  

In TFS 2010, there is a new feature called 'Public Workspaces'. This allows multiple people to share the same workspace folders on a computer, but authenticating to TFS using their own logon.

在TFS 2010中,有一项名为“公共工作区”的新功能。这允许多个人在计算机上共享相同的工作区文件夹,但使用他们自己的登录对TFS进行身份验证。

A TFS administrator can change a workspace to a 'Public Workspace' by running a command like the following:

TFS管理员可以通过运行如下命令将工作区更改为“公共工作区”:

tf workspace /collection:http://yourserver:8080/tfs/yourCollection WorkspaceName;domain\CurrentWorkspaceOwner /permission:Public

(This command can be run on any computer, it doesn't need to be run on the same computer as the workspace you are trying to change)

(此命令可以在任何计算机上运行,​​它不需要与您尝试更改的工作区在同一台计算机上运行)

If there is only one other user that needs to use the workspace, perhaps a simpler method is to just change the owner of the workspace. This can be done by a TFS administrator with the following command:

如果只有一个其他用户需要使用工作空间,则更简单的方法可能只是更改工作空间的所有者。这可以由T​​FS管理员使用以下命令完成:

tf workspace /collection:http://yourserver:8080/tfs/yourCollection WorkspaceName;domain\CurrentWorkspaceOwner /newowner:domain\NewWorkspaceOwner

Once you have done either of these things, you can logon to that computer as the new owner and use the workspace as if it were your own.

完成上述任一项操作后,您可以作为新所有者登录该计算机,并使用工作区,就好像它是您自己的一样。

You can read more about this feature in this blog post TFS2010: Public Workspaces.

您可以在此博客文章TFS2010:Public Workspaces中阅读有关此功能的更多信息。

#2


4  

1) Copy the files from his machine.

1)从他的机器复制文件。

2) Administratively undo his checkout.

2)行政撤销他的结账。

3) Check out the files on your machine.

3)检查机器上的文件。

4) Overwrite your files with his files.

4)用他的文件覆盖你的文件。

5) Your machine state should now roughly equal his; do as many comparisons as you want.

5)你的机器状态现在应该大致等于他的;尽可能多地进行比较。

#3


2  

Have your sys-admin reset the users password to a known value, login as the user on that machine and voila, you are the user...

让您的sys-admin将用户密码重置为已知值,以该计算机上的用户身份登录,瞧,您是用户......

#4


1  

This is probably a quick and dirty way of doing it:

这可能是一种快速而肮脏的方式:

  • Shelve or check-in your own work.
  • 搁置或登记自己的工作。

  • Copy the relevant files from your co-worker into your own workspace
  • 将相关文件从您的同事复制到您自己的工作区

  • Compare the files with latest in TFS
  • 将文件与TFS中的最新文件进行比较

//huusom

#5


0  

You could use some diff tool like beyond compare to visualise the actual differences.

您可以使用一些比较无法比较的差异工具来可视化实际差异。

To manage others' workspaces and even checked out files it is hard to beat Team Sidekicks, which is free and provides brilliant interface for this and many other routine TFS work.

为了管理他人的工作空间甚至检查文件,很难击败Team Sidekicks,这是免费的,并为此和许多其他常规TFS工作提供了出色的界面。