更新计算机名称后,TFS工作区将丢失文件状态 [英] TFS workspace loses files status after updating computer name

查看:114
本文介绍了更新计算机名称后,TFS工作区将丢失文件状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

也许我在这里做错了或者不知道这应该如何工作 但我的工作区并没有像我预期的那样更新计算机名后保持文件状态。这是我正在做的一个例子。

Maybe I'm doing something wrong here or don't get how this should work but my workspace doesn't maintain it's file status as I expected after I update the computer name. Here is an example of what I'm doing.

Old  Computer


  • 我创建一个映射到网络共享的本地工作区
  • 我获取最新信息以获取所有项目文件
  • 我修改一个文件,以便 等待更改

新计算机


  • 我运行以下TF命令来更新计算机名称

tf workspaces / updateComputerName:OldComputerName / Collection:CollectionAddress workspace;所有者

tf workspaces /updateComputerName:OldComputerName /Collection:CollectionAddress workspace;owner


  • 该命令成功运行并报告工作区现在与新计算机相关联。
  • 我打开VS并选择工作区我与这台电脑有联系。
  • 问题: 我打开源代码管理资源管理器,它显示"未下载"对于所有文件。此外,Pending Changes将所有现有文件显示为待处理Add。

我预计工作区仍会知道其已下载文件的状态以及待处理的更改。

I expected that the workspace would still know its status for which files had been downloaded and for the pending change.

我做错了什么或误解了应该发生什么?感谢您的帮助。

Am I doing something wrong or misunderstand what should be happening? Thanks for any help.

推荐答案

你好jowst,

 

感谢您在此发帖。

 

你的意思是你在两台不同的电脑上运行命令或者你只是更改名称并在同一台计算机上运行命令?根据我的测试,之后 我在同一台计算机上运行该命令,我将获得两个工作区:一个以
命名的工作区新计算机名和一个以旧计算机名命名的工作区。

Hi jowst,
 
Thank you for posting here.
 
Did you mean that you run the command in two different computers or you just change the name and run the command in the same computer? According to my test, after  I run the command in the same computer, I will get two workspaces: A workspace named by new computer name and a workspace named by old computer name.

>>我打开VS并选择与此计算机关联的工作区。

请检查您选择的工作区,oldName或newName工作区?

Please check which workspace you selected, the oldName or the newName workspace?

"未下载"表示文件未获取 来自版本控制 到计算机中的映射文件夹。 对于此问题,您需要执行"获取最新版本"以将文件下载到新计算机。

 

"Not downloaded" means that the files are not got  from Version Control  to the mapping folder in your computer.  For this issue, you need to do the "Get the Latest Version" to download the files to your new computer.
 


这篇关于更新计算机名称后,TFS工作区将丢失文件状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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