TFS和VS2010源控制/配置管理问题? [英] TFS and VS2010 Source Control / Configuration management question?

查看:88
本文介绍了TFS和VS2010源控制/配置管理问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是一个for-instance:

Here's a for-instance:

一组6名开发人员正在处理一个包含数百个源文件的项目;有人从源代码控制中检出文件并完成它们并完成它但是它还没有准备好进入主要源代码。另一个开发人员需要使用该文件的原始
版本,并进行准备进入主源的更改(在第一个开发人员进行了更改之后)。

Group of 6 developers working on a project with hundreds of source files; Someone checks-out a file from source control and does their thing and are done with it BUT it's not ready to go into the main source. Another developer needs to work with the original version of that file and make changes that ARE ready to go into the main source (after the 1st developer has made thier changes).

你如何使用VS2010在TFS中处理这类事情?  Source Safe 2005在能够做到这种事情方面并不令人满意(我已经想到了)(有点像SubVersion中的"架子"想法....

How do you handle this sort of thing in TFS with VS2010?  Source Safe 2005 is not satisfactory (that I have figured out) in being able to do this sort of thing (kind of like the "shelf" idea in SubVersion....

谢谢,

Owen

Thanks,
Owen

推荐答案

嗨!

有多个各种方式,都取决于你喜欢的方式:

There are multiple ways, all dependant upon what you prefer:

1.你喜欢颠覆的货架理念吗?很好,它就在那里。你可以为第一个开发者收藏一组文件。 任何开发人员以后可以再次关闭此Shelveset并继续使用它

1. You like the Shelf idea from subversion? Fine, it's there.  You can Shelve the set of files for the 1st developer.  Any developer can later take this Shelveset down again and continue working with it

2.更简单: 您有多个结帐,与Source Safe不同。 所以开发人员1开发人员2可以查看文件。开发人员2可以在开发人员1等待时检入她的文件。他们不必以与
签出相同的顺序办理登机手续。 

2. More easy:  You have multiple checkout, unlike Source Safe.  So both developer 1 and developer 2 can check out the files. Developer 2 can check in her files while developer 1 waits.  They dont have to check in in the same order as it was checked out. 

3.您描述的场景看起来更像是一个分支场景。因为看起来dveeloper 1正在研究一些新功能, d开发人员2正在修复一些错误,你可以将主要的源代码分支到开发人员分支,开发人员1可以在那里完成她的工作,
并签入。开发人员2修复了他的主要错误。当开发人员1完成后,更改将合并回main。 有多种此类分支方案,请查看
codeplex分支指南以获取更多详细信息。

3. The scenario you describe do look more like a branchinh scenario. Since it seems dveeloper 1 is working on some new features, and developer 2 is fixing some bug, you can branch off the main source to a developer branch, where developer 1 can do her things, AND check in. Developer 2 fixes his bugs on the main. When developer 1 is finished the changes are merged back to main.  There are multiple such branching scenarios, look for the codeplex branching guidance for more details.

 

最好的问候

Terje


这篇关于TFS和VS2010源控制/配置管理问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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