WORKSPACESTATUS

Description

Shows changes in the workspace.

Usage

cm status [<wk_path>] [--changelist[=<name>] | --changelists] [--cutignored] [ --header] [ --noheader] [ --nomergesinfo] [ --head] [--short] [--symlink] [ --dirwithchanges] [--xml[=<output_file>]] [--encoding=<name>] [ --wrp | --wkrootrelativepaths] [--fullpaths | --fp] [<legacy_options>] [<search_types>[ ...]] [--pretty] [--machinereadable [--startlineseparator=sep] [--endlineseparator=sep] [--fieldseparator=sep]]

Options

Option / ArgumentDescription
--changelistShows changes in the selected changelist.
--changelistsShows changes grouped in client changelists.
--cutignoredSkips the contents of ignored directories. Requires the '--ignored' search type. See the Search types section for more information.
--headerOnly prints the workspace status.
--noheaderOnly prints the modified item search result.
--nomergesinfoDoesn't print the merge info for changes.
--headPrints the status of the last changeset on the branch.
--shortLists only paths that contains changes.
--symlinkApplies the operation to the symlink and not to the target.
--dirwithchangesShows directories that contain changes inside them (added, moved, removed items inside).
--xmlPrints the output in XML format to the standard output. It is possible to specify an output file.
--prettyPrints workspace changes in a nice table format.
--encodingUsed with the --xml option, specifies the encoding to use in the XML output, i.e.: utf-8. See the MSDN documentation at http://msdn.microsoft.com/en-us/library/system.text.encoding.aspx to get the table of supported encodings and its format (at the end of the page, in the "Name" column).
--wrpPrint workspace root relative paths instead of current directory relative paths.
--fullpaths, --fpForce printing absolute paths, overriding any other path printing setting.
--machinereadableOutputs the result in an easy-to-parse format.
--startlineseparatorUsed with the '--machinereadable' flag, specifies how the lines should start.
--endlineseparatorUsed with the '--machinereadable' flag, specifies how the lines should end.
--fieldseparatorUsed with the '--machinereadable' flag, specifies how the fields should be separated.
--iscochangedShows whether contents of a checked-out file have changed or not. This flag is only available with "--compact", "--xml" and "--machinereadable" options. If this flag is not set, the "--compact", "--xml" or "--machinereadable" options will show just "CO" status for a checked-out file with its contents changed. If this flag is set, the "--compact", "--xml" or "--machinereadable" options will show "CO+CH" status for a checked-out file with its contents changed.
wk_pathPath of the workspace where the search will be performed.

Legacy options

Option / ArgumentDescription
--csetPrints the workspace status in the legacy format.
--compactPrints the workspace status and changelists in the legacy format.
--noheadersWhen used in conjunction with the '--compact' flag, the changelist headers will not be printed. (Does not apply to the new changelists format.)

Search types

Option / ArgumentDescription
--addedPrints added items.
--checkoutPrints checkedout items.
--changedPrints changed items.
--copiedPrints copied items.
--replacedPrints replaced items.
--deletedPrints deleted items.
--localdeletedPrints locally deleted items.
--movedPrints moved items.
--localmovedPrints locally moved items.
--percentofsimilarity=<value>Percent of similarity between two files in order to consider them the same item. Used in the locally moved search. Its default value is 20%.
--txtsameextOnly those text files that have the same extension will be taken into account by the similarity content matching process during the moved items search. By default, any text file will be processed.
--binanyextAny binary file will be taken into account by the similarity content matching process during the moved items search. By default, only those binary files that have the same extension will be processed.
--privatePrints non controlled items.
--ignoredPrints ignored items.
--hiddenchangedPrints hidden changed items. (Includes '--changed')
--cloakedPrints cloaked items.
--controlledchangedThis flag substitutes the following options: '--added', '--checkout', '--copied', '--replaced', '--deleted', '--moved'.
--allThis flag replaces the following parameters: '--controlledchanged', '--changed', '--localdeleted', '--localmoved', '--private'.

Help

Remarks

The 'status' command prints the loaded changeset on a workspace and gets the changed elements inside the workspace.

This command can be used to show the pending changes in a workspace; the type of changes that can be searched can be modified by using the command parameters. By default, all changes are displayed, be they controlled or local.

The percent of similarity parameter '--percentofsimilarity' (-p) is used by the locally moved search to decide if two elements are the same item. The default value is 20% but it can be adjusted.

It is possible to show workspace changes grouped by client changelists. The 'default' changelist includes the changes that are not included in other changelists. That being said, the changes the default changelist will show depends on the search types flags specified.

Showing changes grouped by changelists requires showing controlled changes too (items with status equal to 'added', 'checkout', 'copied', 'replaced', 'deleted', or 'moved'). So, the '--controlledchanged' option will be automatically enabled when changelists are shown.

The default encoding for XML output is utf-8.

By default, this command will print current directory relative paths, unless the '--machinereadable' or '--short' flags are specified. If any of them are specified, the command will print absolute paths.

If '--xml' flag is specified, workspace root relative paths will be printed (unless the '--fp' flag is also specified, printing absolute paths instead).

Examples

cm status

(Prints the working changeset and also all item types changed in the workspace, except the ignored ones.)

cm status --controlledchanged

(Prints the working changeset and also the items that are checkedout, added, copied, replaced, deleted, and moved.)

cm status --added

(Prints only the working changeset and the added items inside the workspace.)

cm status c:\workspaceLocation\code\client --added

(Prints the working changeset and the added items under the specified path recursively.)

cm status --changelists

cm status --changelist

(Shows all the workspace changes grouped by client changelists.)

cm status --changelist=pending_to_review

(Shows the changes on the changelist named 'pending_to_review'.)

cm status --changelist=default --private

(Shows the changes in the 'default' changelist, showing private items, along with items with controlled changes, if any.)

cm status --short --changelist=pending_to_review | cm checkin -

(Checkins the changes in the changelist 'pending_to_review'.)

cm status C:\workspaceLocation --xml=output.xml

(Gets the status information in XML format and using utf-8 in the file output.xml.)

cm status --ignored

(Shows all ignored items.)

cm status --ignored --cutignored

(Shows ignored files whose parent directory is not ignored and ignored directories but not their contents.)