I have a large number of files that I am trying to check in. This process needs to be done several times and is time and resource consuming. I am using the follow command to do this:
cleartool lsco -cvi -all -s | awk '{print "cleartool ci -c \"<Name of checkin>\" " <path to vob> | sh
This command does work, but it takes a very long time to run, as each file is checked in individually. Is it possible to checkin all files at once, or perhaps a faster method of checkin in the files individually. Is it possible to use the same concept, but for a mass checkout?
As I mentioned in "What are the basic clearcase concepts every developer should know?", ClearCase remains a file-by-file VCS, meaning each operation (checkout; checkin, merge) is done file by file.
clearfsimport
remains one possible "bulk" operation (even though behind the scene, it will still checkout or mkelem
for new files, copy, and checkin the files one by one)
That means you can use one view as source folder (clearfsimport
will import any folder, ClearCase view or not), and a snapshot view with the same config spec as destination. See "ClearCase, use clearfsimport to perform brute force update" and "How can I use ClearCase to “add to source control …” recursively?".
With the -rmane
option, it will even remove files which are no longer present in the source folder. See "Remove unused source code files".
来源:https://stackoverflow.com/questions/41572417/how-can-i-quickly-checkin-a-large-number-of-files-in-clearcase