Merge changeset to branch

We use Team Foundation Server with Team Foundation Version Control (not GIT). To support a release we created two branches called CurrentVersion and 5.0.2. Where CurrentVersion is our “development” branch for new features and 5.0.2 is our “master” branch used for building and supporting a release.

When a bug is reported on the released version we fix it and merge the changes to the other branch. This merging is easier then we expected.

Merge changeset wizard

In these steps I merge a change from the CurrentVersion to the 5.0.2 branch. This happens when a bug is found and fixed in development and needs to go to production.

  1. Open source control explorer
  2. Select the source branch and in the context menu > branching and merging > merge…
  3. Check the option selected changesets and click Next
    merge1
  4. Select the changeset(s)* and click Next
    merge2
    * multi select is allowed when changes don’t conflict
  5. Click Finish
    merge3

The result is that the changes from the changeset are staged. (pending changes) Build the code to confirm it’s working and commit the changes with Check In. Now start the release build process.

Track changeset visualization

Nice feature in TFS is the Track Changeset that shows the different branches the changeset has been applied to. Below are the Hierarchy Tracking view and the Timeline Tracking view of the merged changeset.

Hierarchical view Timeline view

The green color means applied, the blue means not applied.

About erictummers

Working in a DevOps team is the best thing that happened to me. I like challenges and sharing the solutions with others. On my blog I’ll mostly post about my work, but expect an occasional home project, productivity tip and tooling review.
This entry was posted in Tooling and tagged , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.