I have a file that needs to be brought into a different branch. How do I do this from the command line. Everything seems to be geared to merging, where the file already exists in both branches.
相关问题
- How to restrict VOB read access in ClearCase (Wind
- softlinks atime and mtime modification
- Get unexpanded argument from bash command line
- Include and Execute EXE in C# Command Line App
- Batch - Set variables in for loop
相关文章
- What is the tortoisehg gui equivalent of doing “hg
- How to use Mercurial from Visual Studio 2010?
- SSIS solution on GIT?
- Is it possible to do a “destroy history” in TFS?
- Compile and build with single command line Java (L
- Is there a version control system abstraction for
- How to update command line output?
- Get Android library module version number from ins
You have to merge the parent directory first, so that the file shows up in the directory in the destination branch. At this point the new file will have zero size. You can then merge the file itself. The easiest way to do both of these operations is via the Version Tree view - much less error-prone than doing it via the command line.
Much simpler:
with 'view_tag' a view on the source directory
I no longer have access to a clearcase environment, so this is from memory, but what you want is to link in a version from another branch into the one that you are working with.
Let's assume that you have a file
new_file
that have been added on the branchnew_feature
(the latest version isnew_file@@/main/new_feature/5
) which you want to merge/bring into the branchmaintenance
.The commands above are probably not 100% correct, but should give you the idea. You want to use
cleartool ln
to avoid evil twins, because that will bring in a version from the already existing element (i.e. not creating a new twin).