Understanding the dsrepoCheckinLibraryP SKILL API Function

This checkin API allows a user to checkin a library.

See Also
dsrepoCheckinLibraryP SKILL API Function Options
dsrepoCheckinLibraryP(
     t_libName
     [?tl_viewNames]
     [?comment t_comment]
     [?save g_save]
     [?silent t]
     [?keeplocks t]
)
=> nil / (x_pass x_fail)

If you modify the library contents, then operation saves the library before the checkin, by default. If you want to prompt the user to choose whether to save or abandon the modifications, specify the ?save nil option.

You can specify a comment. You can specify the checkin comment by:

  • entering the comment.
  • specifying the location of a file containing the comment.
  • if you do not specify a comment, the system uses the default comment, "Checkin from Semiconductor Repository Client."

By default, the checkin operation releases the locks for all included objects, but you can set the keeplocks option to t (true) and the operation retains the lock after completion.

The command returns a list of pass and fail counts; the first integer represents the number of objects successfully checked in and the second integer represents the number of failures. The dsrepoCheckinkLibraryP function checks in a single library, so the returned list is (1 0) if the checkin is successful and (0 1) if the checkin fails. The function raises an error if argument checking fails. In all other failure cases, the function either raises an error or returns nil.

Note: If you specify keeplocks as true while you check in a view that is also open for edit in a design edit window; the design edit window changes to read-only mode when the checkin completes.