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 / Argument | Description |
---|---|
--preview | Prints the changes to apply on the workspace without applying them |
--mount | The mount point for the given repository. |
--encoding | Specifies 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). |
--comparisonmethod | Sets the comparison method. See Remarks for more info. |
sh_spec | Shelveset specification. (Use 'cm help objectspec' to learn more about shelveset specs.) |
change_path | The 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 / Argument | Description |
---|---|
ignoreeol | Ignores end of line differences. |
ignorewhitespaces | Ignores whitespace differences. |
ignoreeolandwhitespaces | Ignores end of line and whitespace differences. |
recognizeall | Detects 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.)