Locking Files or Folders in a Workspace

You can lock files to edit in your local workspace, reserving them for your use. While the files are locked, no other users or workspaces can check in changes or lock the files for their own use. The lock command locks specified files or folders. Files directly mentioned in the command are explicitly locked. Files locked as a result of the command, for example, within a specified folder, are implicitly locked.


Before you begin:
  • You must have one or more workspaces containing the contents of the semiconductor items being updated.
  • The files or folders being locked must be up to date with the server version. If the objects are not up to date, you get an error message indicating that you must update your local workspaces.
See Also
Updating a Workspace
From the command-line client, run the lock command.

sws lock -- path [path ...]
For more information on understanding the lock command, see Understanding the sws lock Command. For information-specific command options and arguments, see sws lock Command Options.

Result: When successful, this locks all specified objects in the workspace. If any file objects cannot be locked, the command locks all the objects it is able to lock. If a folder is specified and any file or folder within the specified folder cannot be locked, the folder and none of the contents of the folder are locked. For each lock that the server fails to obtain, it returns an appropriate error that helps you diagnose and fix the issues.