Understanding the sws update Command

This command updates the local workspace, fetching the latest versions of the files and folders associated with a semiconductor logical item.

See Also
Updating a Workspace
sws update Command Options

This command updates an existing local workspace. This command always updates the entire workspace, regardless of whether you specify the command from the root of the workspace or a subfolder within the workspace.

If any content being updated in the workspace conflicts with locally modified files, the command fails, unless the --force switch is specified. When the --force switch is specified:

  • locally modified objects in conflict are updated.
  • locally modified objects that are not in conflict, are not updated, and the modifications are retained.

If any content being updated in the workspace conflicts with unmanaged files, the command fails, even when the --force switch is selected. Manually rename, move, or delete the conflicting unmanaged files. If an unmanaged file is identical to a managed file in a semiconductor logical item, the files are not considered in conflict, and the command does not return an error. The file becomes a managed file in the workspace.

If the sws update command cannot identify the workspace root, the command fails with an error that explains that the command was unable to find the workspace to update.

The sws update command, by default, fetches the entire structure, including referenced items. Any new items that have been added are fetched using the sws add command. For more information on add, see Adding and Removing Items in your Workspace.

When --verbose is not specified, the command returns a success message that includes the number of files placed in the workspace and how much data was fetched. When --verbose is specified, the output also includes the commit ID of the latest version, the list of files updated, and whether those files were added, modified, or deleted. If there are conflicts when --verbose is specified, the command returns a list of the files names in conflict for you to resolve.

Note: The output of the command for items connected to external code management systems includes all the information returned from the code management system.

Update does not affect the locked status of objects. Any objects that are locked in the workspace remain locked. If you want to release the lock, use the sws unlock command. For more information on unlocking objects, see Unlocking Files and Folders in the Workspace.