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.

Share:
11,608
Alex Brodov
Author by

Alex Brodov

Updated on June 04, 2022

Comments

  • Alex Brodov
    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
    Alex Brodov over 9 years
    How can i change the state of an activity to obsolete ?
  • Alex Brodov
    Alex Brodov over 9 years
    How can i check the state of activity ?
  • VonC
    VonC over 9 years
    @user3502786 cleartool lslock activity:yourAct@/vobs/yourPVob
  • Alex Brodov
    Alex Brodov over 9 years
    last thing how can i list all the files/folders that are checked out
  • VonC
    VonC over 9 years