Chapter 8 Managing document versions in the repository
A branch is a ramification in the version tree, which contains document versions. You use branches to organize team operations and create different work environments. You can also use branches to better organize archived documents. Branches exist independently of document versions in the repository, you can find empty branches in the repository.
In the version tree, a branch can depend on another branch or be autonomous. When a branch depends on another branch, this supporting branch is called base branch. A base branch can have a base branch itself: there is no limitation in the level of interweaving of branches.
Each time you connect to the repository, you have a current branch. The current branch is your work environment in the repository. It applies a filter to the display of the browser: you only see the document versions existing in the current branch and its base branch(es) if the current branch has any.
In the following example, the base branch of Branch 3 is Branch 2, and the base branch of Branch 2 is Branch 1.
If you connect with Branch 3, the display of the repository browser is filtered in order to display the latest version of Branch 3 for Model.CDM, which is V2.1.2.1.2.
Let's consider a development team working on a software project.
The software project includes the following steps: specification, development, major release / minor release, maintenance. A major release comes with fundamental changes in the software, a minor release is made of bug corrections and minor features.
The development team works on three documents:
The project includes three branches used to perform different tasks:
Each engineer will choose the appropriate branch to display the document versions required to perform the task he/she is assigned.
Selected branch | Displayed documents and versions |
---|---|
MAJOR | Requirements.doc V5
Model.PDM V5 Implementation.OOM V4 |
MINOR(based on MAJOR) | Requirements.doc V3.1.2
Model.PDM V2.1.4 Implementation.OOM V2.1.4 |
EBF (based on MINOR) | Requirements.doc V3.1.2
Model.PDM V2.1.4 Implementation.OOM V2.1.2.1.2 |
Copyright (C) 2005. Sybase Inc. All rights reserved. |
![]() |