将文件从一个 Team Foundation 项目移动到另一个 [英] Moving files from one Team Foundation Project to Another

查看:42
本文介绍了将文件从一个 Team Foundation 项目移动到另一个的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的项目已经达到了需要将一些代码拆分为一个单独的团队基础项目的程度.我们希望移动这些文件,以便它们保留其版本控制历史记录.暂时我们将文件复制回原始团队基础项目并重新添加它们,以便我们的日常构建 &测试过程不会中断.因为我们能够修改我们的构建 &测试过程中我们将开始删除这些临时副本.

Our project has hit a point where we need to split off some code into a separate team foundation project. We would like to move these files so they retain their version control history. Temporarily we are copying the files back to the original team foundation project and re-adding them just so that our daily build & test process doesn't break. As we are able to modify our build & test process we will start to remove these temporary copies.

我们注意到的一个问题是,我们有一个夜间脚本,用于检查各个维护分支以查看是否有尚未合并回主干的变更集.现在正在抱怨之前已经合并的变更集.这些变更集似乎与已移动和重新添加的文件有关.关于为什么我们会看到这一点以及我们如何丢弃这些合并候选者的任何想法?如果我们进行合并/discard TF 会告诉我们没有要合并的更改".好像是糊涂了.使用这种方法我们可能还会遇到其他问题吗?也许有更好的方法?

One issue we are noticing is that we have a nightly script that checks various maintenance branches to see if there are changesets that haven't been merged back to trunk. It is now whining about changesets that have been merged before. These changesets seem to be related to the files that have been moved and re-added. Any ideas as to why we are seeing this and how we can discard these merge candidates? If we do a merge /discard TF tells us "there are no changes to merge". It seems to be confused. Also are there other problems we might run into with this approach? Perhaps there is a better approach?

推荐答案

我发现的解决方案是合并/丢弃所有其他变更集,然后进行追赶"合并/丢弃,即不指定任何版本信息.这产生了许多与合并相关的未决更改,但是当我去检查它们时,我收到了 TF14088 错误.解决此错误的方法是先检入有问题的文件/文件夹,然后再检入其他所有内容.

The solution that I found was to merge /discard all other changesets, then do a "catchup" merge /discard i.e. not specifying any version info. This generated a number of merge related pending changes but when I went to check them in, I got a TF14088 error. The workaround for this error was to checkin just the problematic files/folders first and then check in everything else.

这篇关于将文件从一个 Team Foundation 项目移动到另一个的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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