Search code examples
version-controltfs

TFS for version maintainance


I am part of a team that releases versions of our software 4-5 times each year to our customers. We maintain the previous 2-3 versions of our product by correcting any errors that we come across in later versions. We are using TFS 2008 for source control and are trying to find the best way of maintaining the older versions.

We currently create a branch of our application each time we do a new version, but we are looking for a good way to update old versions more easily. For example, we complete 9.5 but two weeks after we created the branch and are working on 10.0, we realize that 9.5 has an error. We currently make the change in version 10.0 and then open 9.5 to make the change again. Is there anyway of automating this?

Thanks!


Solution

  • This is a main reason for branching and merging.

    What I do in your situation is to make the change in 9.5 and then merge the change up into your main branch, and then back down into your 10.0 branch. The built in merge tool works well for this.

    If you go the other direction you run the risk of adding new 10.0 stuff into your 9.5 branch when all you want is your bug fix.

    I would also take a look at the TFS Branching Guides for more information on branching and merging.