sws checkin Command Options

This command commits and pushes the local workspace content to the Semiconductor Item revision. The status of the workspace must be up to date with the server.

Note: All commands options can be entered in an abbreviated format. The abbreviated form is mentioned in the description. All commands and options are case-sensitive.

Option Description

--dir <directorypath>,-d <directorypath>

This option provides a path to prefix to the files and folders being committed. This reduces the amount of input required by entering common file paths here, once, instead of specifying them as part of the positional arguments.

For example, if you are committing three files in your workspace, /doc/chip.doc and /doc/commands.html, and /doc/src/specification.doc specify the command as:sws ci --dir doc --comment "Updating files" chip.doc commands.html src/specification.doc

Note: Comment is included because the option --comment or --cfile is required.

--dir can be abbreviated as -d. If --dir is not specified, The default value is the current working directory.
--comment <Comment>, -c <Comment> Comment describing the checkin. Enclose comments with spaces in quotes.

For example, sws ci --comment "Updated specification with review comments" chip.doc

Either the --comment or --cfile option must be specified.

--comment can be abbreviated as -c. There is no default value.

--cfile <Path>, -C <Path> The path to a text file containing the checkin comment. The --cfile option does not use the --dir option, so the checkin comment file can be in a different directory path from the checkin files.

For example, sws ci --dir doc --cfile ~\comments\listofchanges.txt chip.doc commands.html

Either --comment or --cfile must be specified.

--cfile can be abbreviated as -C (Upper-case C). There is no default value for file name, but if no path is specified, the comment file must be in the current working directory.

--verbose, -v Display verbose output. When --verbose is not specified, the command returns a success message that includes the number of files committed and the amount of data transferred. When --verbose is specified, the output also includes a list of the added, removed, and modified files committed to the server. --verbose can be abbreviated as -v.
[--keep-locks], -l Retain the lock on all objects being checked in. If you do not specify --keep-locks, the checkin operation releases the locks on all affected objects. --keep-locks can be abbreviated as -l. By default, the locks are released.
--help, -h Displays simplified help focused on the most useful information.--help can be abbreviated as -h.