StarTeam creates at least one reference to a folder or item whenever:
As you add, share, or move a folder or item, more than one reference to it may occur if the view is a child view that branches and floats, or if the view has child views that branch and float.
For example, suppose you want to move a file from one folder to another in the same view. Suppose that the view has two child views, both of which contain the file. That means that there are at least three references to this file, one in each of three views. Now, you move the file to another folder in the same view. The reference in the current view is moved to represent the new location of the file. Depending on the properties of the two child views, a new reference may be created for the file in each of the child views. The references in those child views to the file in its original location still exist, because the application does not assume that you want to change those references just because you have moved the file in the current view. You may end up with five references to this file that formerly had three references.
The following table explains what references StarTeam creates in the current view, the recipient view, the parent of the recipient view, and the children of the recipient view. This is often recursive. For example, if a reference is created in the parent view, new references might be created in the other children of that view or in the parent of that view, and so on, depending on what views are floating.
When a folder or item is... | ...is a reference added to the view of the recipient? | ...is a reference added to the parent view of the recipient view? | ...is a reference added to the child views of the recipient view? |
---|---|---|---|
Part of a newly-created view | Yes, unless the new view is a reference view. In this case, a new view is not really being created, because a reference view is just a new way of looking at an existing view.) There is one reference for the folder or item in the newly-created view. | No, because the parent view is the source of the folder or item, so the reference in the parent view already exists. | No, because the newly-created view has no child views. |
Added to the current view | Yes, there is one reference for the new folder or item in the current view. |
Yes, if the current view is a branch none, floating child of the parent view. Otherwise, no. |
Yes, if the child view is a branching (either branch none or branch all), floating child of the current view. Otherwise, no. |
Shared within the current view | Yes, a new reference is created for the shared folder or item in the new location in the current view. |
Yes, if the current view is a branch none, floating child of the parent view. Otherwise, no. |
Yes, if the child view is a branching (either branch none or branch all), floating child of the current view. Otherwise, no. |
Moved within the current view | No, the original reference is updated to reflect the move. |
Yes, if the current view is a branch none, floating child of the parent view. Otherwise, no. |
Yes, if the child view is a branching (either branch none or branch all), floating child of the current view. Otherwise, no. |
Consider the following example of four references that would display in the Folder References dialog box:
In the above example, the selected folder has four references.
The Current icon indicates which reference represents the currently selected folder or item. Otherwise, this dialog contains the same information regardless of the view in which you selected the folder.
Each reference shows the following, separated by double colons (::):
In this example, the name of the project, the name of the root view, and the root folder in the root view all have the same name.
You can resize the Folder References dialog box (by dragging an edge or corner). It displays scroll bars when appropriate. The references in bold indicate which revisions of the currently selected folder or item are its descendants. In other words, the currently selected folder or item is part of the revision history for the references that are in bold.
Consider the following example from the Reference tab shows the references for a file (AUDITSCC.DOC). The reference for the currently selected file indicates that revision of the file is 1.6. As indicated by the bolding of its reference, revision 1.8 is the only descendant of revision 1.6. If a defect is found in revision 1.6 of AUDITSCC.DOC, the bolding helps you determine which descendants of 1.6 may also need the corrected lines. In this case, you may only new to update 1.8.
When you add a folder or item to the application, StarTeam creates a reference. Consider the following example of a folder hierarchy for a newly-created project. In this example, it is the folder hierarchy for the root view of that project.
Before you make any changes to the folder properties of the Source Code folder, the Folder References dialog box would contain exactly one reference to it. For example, Big Product::Big Product::Big Product\Source Code, 1.0.
As you make changes to the folder properties of the Source Code folder, the revision number might change from 1.0 to 1.1 and later 1.2. However, there will still be only one reference to this folder in the Folder Reference dialog box.
If a reference view is created (to be used, for example, by a group of reviewers), the view hierarchy for the Big Product project would contain two views, but the Source Code folder would continue to have just one reference. A Reference view contains a subset of the folders in its parent view, but those folders are the same folders as those in the parent view. They cannot branch. For example, after creating a reference view for reviewers, the Folder References dialog box would contain the following information:
Once you share the folder manually or share it automatically when you create a branching child view, additional references then display in the Folder References dialog box.