Understanding the sws status Command

This command reports the status of managed and unmanaged content in the workspace; letting you know whether the workspace is up to date with the item revision.

See Also
Viewing An Item Status
sws status Command Options

When the command is executed, it verifies that the latest version of the item revision matches the workspace version. After that it determines the status of the workspace with respect to the item revision.

The --dir option specifies the workspace. If the --dir option is not provided, the command returns the status of the current working directory, by default. The --dir option can be any workspace root or subdirectory; if a subdirectory is specified, the status command returns the full status of the workspace, as if the root directory was specified.

If the item connects to a GIT repository, the sws status command also includes the information returned by the git fetch and git status commands.

If the item connects to a DesignSync repository, the sws status command also includes the information returned by the showstatus command.

The sws status command in normal (not verbose) mode, reports:

  • if the status is up to date.
  • A list of modified files in the workspace.
  • A list of unmanaged files in the workspace.
When the --verbose option is specified, the command returns:

  • The workspace path.
  • The semiconductor logical item name.
  • Whether the status is up to date, or, if it is not up to date, how many revisions back the workspace is from the repository version.
  • Any objects that have been modified in the workspace, but are not locked. Since workspace objects cannot be checked in without being locked, these objects prevent checkin.