Team Foundation Server:将集合的项目克隆到新的集合中 [英] Team Foundation Server: Cloning a Collection's Project into a new Collection

查看:20
本文介绍了Team Foundation Server:将集合的项目克隆到新的集合中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们希望为下一个版本的应用程序开发创建一个新的 Team Foundation Server 集合.我们当前版本的源代码基本上不适用,除了一些 DLL 应该或多或少保持不变.我们想创建一个新集合,但想知道我们是否能够从现有集合中克隆 DLL 项目以保留历史记录.

We are looking to create a new Team Foundation Server Collection for the next version of our application development. The source from our current version will largely not apply, except for a few DLLs which should more or less remain unchanged. We wanted to make a new collection but were wondering if we would be able to clone the DLL projects from our existing collection to retain history.

这可能吗?我们意识到如果 DLL 需要任何错误修正,这可能会带来一些双重维护"问题,但我们并不太关心这种情况.

Is this possible? We realize this could bring up some "Dual Maintenance" issues if there are any bugfixes needed for the DLLs, but we are not too concerned about that scenario.

到目前为止,我已经想出了一些资源.一些 MSDN 帖子将人们指向拆分团队项目集合.然而,这里的问题是每个集合中只能有一个项目.IT 声明:

So far, I have come up with a few resources. Some MSDN posts were pointing people towards Splitting a Team Project Collection. The issue there, however, is that you can only have one project in each collection. IT states:

一个项目不能存在于多个集合中.在删除拆分集合之间的所有重复项目之前,您将无法启动重命名的集合.

A project cannot exist in more than one collection. Until you delete all duplicated projects between the split collections, you will not be able to start the renamed collection.

那不是我们真正想要的.我们希望在每个集合中维护两个项目的历史记录.

That is not really what we want. We would like to maintain both projects with history in each collection.

否则,我看到了 TFSConfig 命令.它包含一个/clone 选项,但我不太确定它的用法(其他示例也很难找到)并且它提到它也主要用于拆分.

Otherwise, I saw the TFSConfig command. It contains a /clone option, but I am not quite sure of its usage (additional examples are also hard to come by) and it mentions that it is primarily used for splitting as well.

我们是否想做一些不可能的事情?如果我们真的需要历史,我们是否需要复制源并将其作为新项目添加到新集合中并引用旧集合?谢谢.

Are we looking to do something that isnt possible? Would we need to copy the source and add it as a new project in the new collection and refer to the old collection if we really need history? Thanks.

推荐答案

正如其他评论者所建议的那样,您可能不想为此目的启动新的团队项目集合.

As other commenters have suggested, you probably don't want to start a new Team Project Collection for this purpose.

反对创建新 TPC 的正常原因是:

The normal reasons against creating a new TPC are:

  1. 在两个团队项目集合之间共享代码或工作项非常困难.这几乎就像您要连接到新服务器一样.
  2. 除非您的项目太大,以至于您将来可能需要将集合移动到它自己的 SQL 服务器,否则新 TPC 的价值不大

但是,如果您确实决定要在同一台服务器上创建现有 TPC 的副本,请遵循以下一般步骤:

However, if you did decide that you want to create a copy of an existing TPC on the same server, these are the general steps to follow:

  1. 打开 TFS 管理控制台,转到团队项目集合
  2. 选择您现有的收藏并选择分离收藏"
  3. 等待分离完成.此过程从配置数据库(如组/身份)中复制共享"数据并将其存储在集合数据库中.
  4. 分离完成后,在 SQL 中备份数据库
  5. 在管理控制台中,选择附加集合"并选择您刚刚分离的数据库已备份

这些步骤可以在同一台服务器(或另一台服务器,如果你想把它移到那里)上执行

These steps can then be performed on the same server (or another server, if you want to move it there)

  1. 使用新的数据库名称恢复数据库备份
  2. 在 TFS 管理控制台中,选择附加集合"并选择您刚刚恢复的数据库.
  3. TFS 将查看此数据库的 GUID(存储为扩展属性),它会看到它与服务器上当前正在运行的集合相同,并自动为其赋予一个新的 GUID.
  4. 此时,您应该有两个集合正在运行.

这篇关于Team Foundation Server:将集合的项目克隆到新的集合中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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