What's the “proper” way to delete files from a ClearCase snapshot?

When I delete a file from my snapshot view, the next time I look at the snapshot in ClearCase Explorer, it shows the “??” checked-out-but-removed icon. When I run “Find Modified Files” on the snapshot, the deleted files aren’t shown. Running “Update View” on the snapshot causes ClearCase to re-copy the missing files back into my view.

What I want to happen is this: when I delete a file from my snapshot, and do an update, the file should be deleted from the view, just as if I had deleted it through ClearCase from a dynamic view. What’s the best way to accomplish this?

  • Can we omit element * /main/LATEST in the config spec of base clear case project?
  • How to find which CRs in clearcase modified given lines in source code file (like 'git blame -L' does)?
  • Does ClearCase fit our development process?
  • Get the error when creating the view “cleartool mkview -tag $view-name $view-name" with Clearcase UCM Plugin 1.7.4
  • Jenkins Composite baseline with ClearCase
  • Migrating from clearcase to mercurial
  • I would prefer to avoid a lot of customization of my ClearCase environment. If there’s a “standard” way to do this, I’d like to try that. If cleartool can show me search results for all files that fit this bill, that will be good enough for my purposes.

  • SVN merge trunk into branch deleting files
  • Version control with MVFS
  • Jenkins creating a view in ClearCase
  • Clearcase: How do I merge in a specific file from one view, into another, to avoid the Evil Twin scenario?
  • Adapt SCM Implementation with Subversion to ClearCase
  • SVN project import to ClearCase
  • One Solution collect form web for “What's the “proper” way to delete files from a ClearCase snapshot?”

    If you delete the file from the ClearCase Explorer, you shouldn’t have any issue: it will

    • checkout the parent directory
    • rmname the file
    • checkin the parent directory

    But if you do it directly from a shell or a Windows Explorer, then ClearCase won’t be informed of the operation, hence the “??” checked-out-but-removed status.

    With a dynamic view, you cannot remove a file without ClearCase knowing about it, since a dynamic view is an encapsulation of the file system managed entirely by ClearCase.

    Now let’s suppose you have deleted a bunch of check-out files directly from the native filesystem (not from the ClearCase Explorer or an IDE with a ClearCase plugin), and that you want those files to stay deleted!

    Then a way to reconcile the two status would be to:

    • cleartool update . (at the root directory of the snapshot view)
    • parse the generated “.updt” file and for each checked-out file, rmname it (like in this article)
    Git Baby is a git and github fan, let's start git clone.