Adding files to sourcecontrol on linux using cleartool
11,608
You need to checkout the parent folder first.
cd /path/to/file/
cleartool mkact newfile
cleartool checkout -c "add file" .
cleartool mkelem testScript.sh
cleartool checkin -nc
The cleartool mkact
would work if you are in an UCM view.
It will create and set a new activity, which will record the files and folder you will modify.
Here, the new activity newFile will record the new version of the parent folder, as well as the version 0 and 1 of the file.
Author by
Alex Brodov
Updated on June 04, 2022Comments
-
Alex Brodov almost 2 years
I have a file that i want to add to sourcecontrol on linux using
cleartool
. I've followed the IBM documentation for this, i've tried this:cleartool mkelem testScript.sh
I got an error: Can't modify directory "." because it is not checked out. I also would like to know how can i checkout/checkin files or directories and setting activities.
-
Alex Brodov over 9 yearsHow can i change the state of an activity to obsolete ?
-
Alex Brodov over 9 yearsHow can i check the state of activity ?
-
VonC over 9 years@user3502786
cleartool lslock activity:yourAct@/vobs/yourPVob
-
Alex Brodov over 9 yearslast thing how can i list all the files/folders that are checked out
-
VonC over 9 years@user3502786 stackoverflow.com/a/8749324/6309 or stackoverflow.com/a/1577552/6309. Also seen in stackoverflow.com/a/974016/6309