1

I recently started usage of clear case tools for maintenance of code in better way. But after some days my "Company" forgot to take licence from IBM as result I cannot CHECK-IN my code into clearcase. To continue my coding i created a separate folder in other drive and copied code solution in that folder. I and my colleague modified around "9865" files of solution within "45" working days. Now a "Company" borrowed a licence for me and I able to access code clear case tool successfully.

Problem is:

How to check in my "9865" files into clearcase in better way?

I tried:

Copied all solution into Snapshot view folder location. but, all changed files are showing "hijack".

1 Answer 1

1

The best way is to use clearfsimport: that will automatically checkout, and import your 9865 in one command.

Make sure to update your snapshot view first, in order to restore its original content.
Then clearfsimport those files.

clearfsimport -preview -rec -nset /path/to/sourceDir\* </myview/VOB>

The clearfsimport command will detect the files added or modified, and do the checkouts for you.
If you are using an UCM view, set an activity first.

The source from where clearfsimport does that copy can be any regular folder.

21
  • Thank you for quick reply. This will import files in development branch or in main branch? Additionally what about newly added files? Commented Apr 6, 2015 at 8:05
  • @SantoshDhanawade it will import the files in the branch currently managed by the view: choose a view already set to checkout files in the right branch, and clearfsimport simply will use that. clearfsimport is just there to checkout and import: it doesn't know in which branch, that is entirely controled by the destination view config spec.
    – VonC
    Commented Apr 6, 2015 at 8:07
  • @SantoshDhanawade yes, but check your config spec: if it says -mkbranch xxx (as in stackoverflow.com/a/29014592/6309), it would create a branch xxx starting from the eye (unless the eye points already to the xxx branch)
    – VonC
    Commented Apr 6, 2015 at 8:12
  • No issues if it create branch. What about newly added files? Is this command add files to source control? Commented Apr 6, 2015 at 8:14
  • @SantoshDhanawade again, it depends on your config spec (as in stackoverflow.com/a/29014592/6309): a /main/0 rule is needed as a new file will first create a /main/0 placeholder version, and then create a version 1 in the current branch defined by the config spec. But yes, clearfsimport will those new files to source control for you.
    – VonC
    Commented Apr 6, 2015 at 8:16

Not the answer you're looking for? Browse other questions tagged or ask your own question.