UNDOCHECKOUTUNCHANGED

Description

Undoes non-changed checked out items.

Usage

cm uncounchanged | unuc <item_path>[ ...] [-R | -r | --recursive] [--symlink] [--silent]

Options

Option / ArgumentDescription
-R | -r | --recursiveUndoes unchanged items recursively in the specified paths.
--symlinkApplies the uncounchanged operation to the link and not to the target.
--silentDoes not show any output.
item_pathItems to apply the operation. Use a whitespace to separate paths. Use double quotes (" ") to specify paths containing spaces. Use . to apply the operation to current directory.

Help

Remarks

This command is applied from the root of the workspace recursively.

Reading input from stdin

The 'uncounchanged' command can read paths from stdin. To do this, pass a single dash "-". Example: cm uncounchanged -

Paths will be read until an empty line is entered. This allows you to use pipe to specify for which unchanged files to undo the checkout. Example:

dir /S /B *.c | cm uncounchanged -

(In Windows, undoes the checkout on all unchanged .c files in the workspace.)

Examples

cm uncounchanged . -R

(Undoes checkouts of not changed files recursively on the current directory.)

cm unuc /home/myuser/mywk/project/templates -R

(Undoes checkouts of not changed files recursively on the selected directory.)