SHELVESET APPLY

Description

Applies a stored shelveset.

Usage

cm shelveset apply <sh_spec> [<change_path>[ ...]] [--preview] [--mount] [--encoding=<name>] [--comparisonmethod=(ignoreeol | ignorewhitespaces| ignoreeolandwhitespaces | recognizeall)]

Options

Option / ArgumentDescription
--previewPrints the changes to apply on the workspace without applying them
--mountThe mount point for the given repository.
--encodingSpecifies the output encoding, 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).
--comparisonmethodSets the comparison method. See Remarks for more info.
sh_specShelveset specification. (Use 'cm help objectspec' to learn more about shelveset specs.)
change_pathThe change path(s) of the shelve to apply. It's a server path, the one printed by the --preview option. When no path is set, all changes will be applied.

Help

The 'shelveset apply' command restores the contents of a stored shelveset.

Remarks

Comparison methods

Option / ArgumentDescription
ignoreeolIgnores end of line differences.
ignorewhitespacesIgnores whitespace differences.
ignoreeolandwhitespacesIgnores end of line and whitespace differences.
recognizeallDetects end of line and whitespace differences.

Examples

cm shelveset apply sh:3

(Applies a stored shelve.)

cm shelveset apply sh:3 /src/foo.c

(Applies only the /src/foo.c change stored on the shelve.)