Activity View: Isolated Team Work Area

Suppose your team is charted with developing a significant new enhancement (or a set of enhancements to be developed together). By significant, we mean changes that will affect more than a few artifacts, take more than a few days, and/or involve more than a few people. You wouldn’t want to make changes directly to the main view since:

  1. You want to check in your changes often to ensure they are backed-up, progress can be tracked, etc.
  2. It may be a while before your changes are sufficiently stable to begin testing. The way to isolate your team’s work is with an activity view.

An activity view is a branch-all view created from a well-identified, stable configuration of the main view. If the enhancement work only requires a portion of the main view’s modules, you might choose to root the activity view from something other than the main view’s root folder. Typically, an activity view is created from a view label or promotion state, which causes it to contain items pinned to the same revisions in the main view as of that snapshot. As changes are made to the activity view, the corresponding items will branch and hence will not be visible to the main view. New items are also added to the activity view and hence not visible to the main view. As work progresses, the state of tip revisions in the activity view may not always represent a buildable release. But eventually, your team will build, test, fix, and finish its work, whereupon it is “promoted” to the main view.

Activity views typically have a limited lifespan: when the enhancement work is done and promoted, they can be deleted, usually after a certain period of time. Strictly speaking, a single activity view could be used for multiple enhancement activities, but there is an advantage to using separate views for each activity: if for some reason the activity must be cancelled, the activity view can be abandoned and eventually deleted. This isn’t practical if the view contains work from multiple activities. Either way, activity views periodically require “rebasing”.

A variation of the activity view is an integration view, which supports integration activities for a large software project.