Branching from ' 0 ' Version
Any one please let me know, How can we create branch from Main 0 -version.
we have Main & The latest Current Version is 50-version. But i want to make branch from O-Version.So that Branch should not 开发者_开发百科ahve any data into it.
Please let me know how can this be done !.
You should be able to do it by modifying the config spec of your view (assuming you are in Base ClearCase, not UCM)
element .../aNewBranch /main/LATEST
element /path/... /main/0 -mkbranch aNewBranch
Note the order:
- first try to select the
LATEST
version of the "aNewBranch
", - then select
version 0
with possibility of making a branch if there is a checkout
See How a ConfigSpec works and Writing a ConfigSpec for more.
In addition to the answer by VonC, do not assume that branch with name /main always exist. The type of the "main" branch can be changed, so for example it can be called /head instead.
精彩评论