删除已经存在的 TFS Workspace
2010-03-03 16:59
387 查看
工作转移到新的TFS平台
打开source control在创建workspace时出错
信息为:
The Path <local path> is already mapped in workspace <machine name [old tfs server]>
很诡异的bug:)
Google搜索发现别人也遇到过相同的问题(估计是很多人遇到过)
http://geekswithblogs.net/aaronsblog/archive/2006/09/11/90878.aspx
参考Kevin Jones的博客文章,我们知道Client端的配置信息存储在
“C:/Documents and Settings/[user]/Local Settings/Application Data/Microsoft/Team Foundation/1.0/Cache/VersionControl.config”
不过让每个人修改config文件可不是个好的workaround
好在Buck Hodges给出了较为明确的解释:
The reason that you hit this is due to switching servers. Every server has a unique identifier, which is a GUID. Each local path can only be mapped in a single workspace. You originally had a workspace on the first server that used the local path you wanted to use with the new server. Let's say that's c:/projects. When you create the new workspace on the new server (GUID2) that you also want to map to c:/projects, the client sees that the old server (GUID1) is already using that local path. Since the IDs for the servers do not match, the client complains that c:/projects is already mapped to the old workspace on the old server.
并且有了明确的解决方法:
The solution is to clear the cache file, as described above. The problem will not occur if you upgrade the same server (i.e., you don't create a new server).
You can use the command "tf workspaces /remove:*" to clear out all of the cached workspaces (it only affects the cache file). You can specify /s:http://oldserver:8080 to just clear out the workspaces that were on the old server. The MSDN doc for the workspaces command are at http://msdn2.microsoft.com/en-us/library/54dkh0y3.aspx.
嘿嘿,打开VS2008的CMD,输入"tf worksapces /remove:* /s:http://oldserver:8080"
返回VS中的TeamExplorer发现还是不行
于是决定删除所有的cache中的workspace
"tf workspaces /remove:*"
再次返回TeamExplorer,一切OK了:)
多说一句,MSDN文档真的很烂,到现在了内容也不更新,还是要求输入/s:ServerName,
如果这样输入,会有个错误告诉你:URI非法,不能够识别URI的格式。
打开source control在创建workspace时出错
信息为:
The Path <local path> is already mapped in workspace <machine name [old tfs server]>
很诡异的bug:)
Google搜索发现别人也遇到过相同的问题(估计是很多人遇到过)
http://geekswithblogs.net/aaronsblog/archive/2006/09/11/90878.aspx
参考Kevin Jones的博客文章,我们知道Client端的配置信息存储在
“C:/Documents and Settings/[user]/Local Settings/Application Data/Microsoft/Team Foundation/1.0/Cache/VersionControl.config”
不过让每个人修改config文件可不是个好的workaround
好在Buck Hodges给出了较为明确的解释:
The reason that you hit this is due to switching servers. Every server has a unique identifier, which is a GUID. Each local path can only be mapped in a single workspace. You originally had a workspace on the first server that used the local path you wanted to use with the new server. Let's say that's c:/projects. When you create the new workspace on the new server (GUID2) that you also want to map to c:/projects, the client sees that the old server (GUID1) is already using that local path. Since the IDs for the servers do not match, the client complains that c:/projects is already mapped to the old workspace on the old server.
并且有了明确的解决方法:
The solution is to clear the cache file, as described above. The problem will not occur if you upgrade the same server (i.e., you don't create a new server).
You can use the command "tf workspaces /remove:*" to clear out all of the cached workspaces (it only affects the cache file). You can specify /s:http://oldserver:8080 to just clear out the workspaces that were on the old server. The MSDN doc for the workspaces command are at http://msdn2.microsoft.com/en-us/library/54dkh0y3.aspx.
嘿嘿,打开VS2008的CMD,输入"tf worksapces /remove:* /s:http://oldserver:8080"
返回VS中的TeamExplorer发现还是不行
于是决定删除所有的cache中的workspace
"tf workspaces /remove:*"
再次返回TeamExplorer,一切OK了:)
多说一句,MSDN文档真的很烂,到现在了内容也不更新,还是要求输入/s:ServerName,
如果这样输入,会有个错误告诉你:URI非法,不能够识别URI的格式。
相关文章推荐
- github 如何删除已经存在的仓库
- 删除已经存在的MYSQL服务
- 通过文件锁实现,程序开始运行时,先判断文件是否存在,若存在则表明该程序已经在运行了,如果不存在就用open函数创建该文件,程序退出时关闭文件并删除文件。
- 【转】通过文件锁实现,程序开始运行时,先判断文件是否存在,若存在则表明该程序已经在运行了,如果不存在就用open函数创建该文件,程序退出时关闭文件并删除文件
- 从SVN上删除已经存在的文件
- 给Postgresql已经存在的表中的列删除或者添加默认值
- 【转】删除已经存在的 TFS Workspace
- (my)eclipse工作空间中删除项目重新导入会遇到项目已经存在的问题
- 删除hdf5文件中已经存在的dset
- 通过文件锁实现,程序开始运行时,先判断文件是否存在,若存在则表明该程序已经在运行了,如果不存在就用open函数创建该文件,程序退出时关闭文件并删除文件
- HBase 创建表已经存在,删除表又不存在的问题
- 使用闪回归档区+创建表时指定闪回归档区+为已经存在的表指定闪回归档区+删除表的闪回归档区+查询指定闪回归档区的信息
- fopen的巧妙用法--清空一个已经存在的文件,但不删除这个文件 fgets取文件一行
- 删除github项目中已经存在的某个文件
- Ajax异步验证用户名是否已经存在
- dedecms好友描述修改和会员中心收藏删除均存在sql注入漏洞
- JS操作select相关方法:新增 修改 删除 选中 清空 判断存在
- Javascript 操作select控件大全(新增、修改、删除、选中、清空、判断存在等)
- 简单运用Ajax判断账号是否已经存在
- 今天解决了 项目中已经存在对组件“XXX”的引用 的小问题