LOCK CREATE

Description

Create item locks on a server.

Usage

cm lock create | mk <branchspec> <itemspec>[ ...]

Option / ArgumentDescription
branchspecThe branch where the locks will be created. (Use 'cm help objectspec' to learn more about branchspecs.)
itemspecOne or more item specs. (Use 'cm help objectspec' to learn more about itemspecs.)

Help

Remarks

  • Only the administrator can create locks.
  • All locks created with this command are created in Retained status.
  • If the revision loaded in the specified branch (for each item) is the same loaded in the lock destination branch (/main by default), then no lock is created.
  • The repspec or the branchspec must be the same of all the itemspecs specified.

Examples

cm lock create /main/task@myrep itemid:56@myrep

(Creates a lock for the item id 56 in the branch /main/task@myrep.)

cm lock create br:/main/task item:/workspace/foo.psd item:/workspace/bar.psd

(Creates a lock for the selected item in the branch /main/task.)