What is the command in Clearcase to delete the branches of an element in which it is not modified (Element's version in that branch is "0") ?
相关问题
- 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?
rmver won't work.
/home/ccadmin $ cleartool rmver -force ./VaREngine/Makefile@@/main/nz_mig/nz_relOne/0 cleartool: Error: Cannot delete version zero without deleting branch: "./VaREngine/Makefile".
You can simply remove the version 0 of that element (that I detail here).
That will remove the associated branch.
You would need to "
cleartool find
" all elements with a version 0 (and no version 1), andrmver
those version 0.For a given branch, this would return all the versions to delete:
You can combine that with an exec directive:
Be careful with
rmver
, this is a destructive operation, so do test that carefully before executing the fullfind -exec rmver
command!Another approach is mentioned in "Purging Zero-Version-Only Elements in ClearCase" article, by George F. Frazier:
Tamir suggests a trigger to automatically remove version 0, as listed in the IBM Rational ClearCase: The ten best triggers, under the section Empty Branch.
That is good for future cases where an undo checkout leaves a version 0.