I want to check in a directory and all the sub-directories into the clear case. Is there a specific command to achieve it? Currently I am going into each directory and manually checking in each file.
In a dynamic view, checkin deletes each view-private, checked-out pname file after using it to create a new version. In a snapshot view, checkin uses the checked-out pname file to create a new version, then loads the checked-in version into the view.
TO UNRESERVE A RESERVED CHECKOUT (recommended approach)cleartool unreserve -view hostname:C:\ccweb\{USERNAME}\{END USER'S VIEW}\view. stg C:\ccweb\{USERNAME}\{END USER'S VIEW}\{VOBTAG}\directory\filename cleartool: Warning: This tool should not be used to access a Web View.
The mkdir command creates one or more directory elements. (Operating system directory creation commands create view-private directories, not elements.) Unless you specify the –nco (no checkout) option, the new directory is checked out automatically.
I would recommend this question:
Now the problem is to checkin everything that has changed.
It is problematic since often not everything has changed, and ClearCase will trigger an error message when trying to check in an identical file. Meaning you will need 2 commands:
ct lsco -r -cvi -fmt "ci -nc \"%n\"\n" | ct
ct lsco -r -cvi -fmt "unco -rm %n\n" | ct
(with 'ct being 'cleartool' : type 'doskey ct=cleartool $*' on Windows to set that alias)
But if by "checkin" you mean:
I would recommend creating a dynamic view and clearfsimport your snapshot tree (with the new files) in the dynamic view.
See this question or this question.
the clearfsimport script is better equipped to import multiple times the same set of files, and automatically:
:
clearfsimport -preview -rec -nset c:\sourceDir\* m:\MyView\MyVob\MyDestinationDirectory
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With