| |
| «« Back to index page |
| Accessing element versions that are not visible in the current view |
Many a times my customers used to ask me how to access an old version of an element, or a version of an element that is not visible in the current view. There are multiple ways to do this.
One way to do this is by using the version-extended names. Version extended names helps us to access any version of an element from a view context.
For example, assume that the current view selects the 15th version of hello.c on the main branch and we want to access the 12rd version. We can do this by using the version-extended path name of hello.c’s 12th version. And it looks like follows:
hello.c@@\main\12
In the above pattern, ‘hello.c’ is the name of the element, @@ is the delimiting characters and ‘\main\12’ represents the version selector, including the name of the branch and the version number on that branch.
The version selector can even be pre-defined or user defined labels as well. Following are all legal version-extended names.
hello.c@@\REL2.0
hello.c@@\main\bug_fix\3 |