Could anyone explain what is a Evil Twin and Subtractive merge in Clearcase?
相关问题
- How to restrict VOB read access in ClearCase (Wind
- preserving history when using mercurial ontop of c
- How to use ClearCase annotate sub-command?
- listing files checked in during last 2 days
- VS2008 and ClearCase : opening solution requests a
相关文章
- Provide version to independent files in clearcase
- How to undo checkout a file checked out from anoth
- Getting present working view in Clearcase
- What is the nature of a “MVFS filesystem” with Cle
- How to list only the name of the baselines in UCM
- Reuse a ClearCase view
- Value of using Git with ClearCase, AccuRev or Perf
- ClearCase: change branch type name?
IBM has a nice article on substractive merge.
This will work for file as well as directory
But you need to realize that merge is about a file or a directory, not about a directory "and everything in it".
To merge recursively, take a look at findmerge.
You can want to merge only directories (since they are always merged first, to determine the actual list of files to merge!), as in this IBM article
you may also do the merge from the LATEST version of a branch or from a tag:
Note: the -print is always a good idea before replacing it by '
-merge -gmerge
', in order to get a preview of what will be merged. But if directories are involved, it will only print that 'directory X
' needs to be merged, not the exact list of files.For evil twins, check out the IBM article. Case sensitive issues can be a real pain to deal with and create some evil twins without you realizing it...
Evil Twin
An Evil Twin is an element that you have removed (using rmname) and want to re-add, but it's 'evil twin' exists in previous versions of the directory.
You have to remember that each element had a unique ID, so you are attempting to add an element with the same name - but with a different UID. This is not allowed.
The best way to deal with an Evil Twin is to relink the newest version you can find of the existing element to the new version of the directory. You can then make a new version of the element and replace the data within it.
Subtractive Merge
A subtractive merge is the opposite of a selective merge.
A selective merge (the default, bog standard merge) adds the changes from another element version into your checked-out version.
A subtractive merge attempts to remove the changes made in a different version from the version you have checked out - because it's a bad version, you've made mistakes in it etc.