Cm-Help en
Cm-Help en
== CMD_USAGE_ACL ==
Usage:
== CMD_HELP_ACL ==
Configuring permissions requires understanding how Plastic SCM security works.
Check the Security Guide to learn how permissions work:
https://www.plasticscm.com/download/help/securityguide
Remarks:
This command sets permissions for a user or group on the specified objects,
repositories, branches, labels and/or server paths.
Object specs:
(Use 'cm ^help ^objectspec' to learn how to specify objects.)
The '^acl' command uses a special type of spec: secured paths.
Permission action:
Use -^allowed and -^denied to specify what permissions to set.
Use -^overrideallowed and -^overridedenied arguments to specify what
permissions to override.
Permission names:
Each permission name is preceded by + or - symbol.
The + symbol sets the permission and the - symbol clears it.
To see the permissions of an object, use the 'cm ^showacl' command.
Overridden permissions:
Overriding a permission using -^overrideallowed and -^overridedenied
allows you to bypass inheritance.
It is helpful to bypass permissions set at the repository or server
level.
Example:
cm ^acl --^user=vio -^allowed=+^ci -^overrideallowed=+^ci ^br:qa@test
(Allows user 'vio' to checkin on the branch 'qa' on repo 'test'
even if she has the permission denied at the repo level.)
The permissions that can be defined for a secured path are the
following:
'^ci', '^change', '^add', '^move', '^rm', '^read'
To edit the ACL associated to the secured path, the tag is useful.
Example:
cm ^acl --^user=jo -^denied=+^rm ^path:/src#rule0
(Without the tag, the list of branches would need to be specified
again.)
The list of branches of the secured path can be edited.
Example:
cm ^acl ^path:/src#rule0 --^branches=-main,+main/rel1
(Removes 'main' from the list and adds 'main/rel1'.)
Inheritance:
Inheritance is an option that comes from the days of Plastic SCM 3.0.
It is advanced, but almost deprecated.
It lets an object inherit its permissions from any other object,
overriding the default inheritance relationships.
The -^inherit option allows the user to inherit from an object spec.
Example: '-^inherit=object_spec'
Examples:
== CMD_DESCRIPTION_ACTIVATEUSER ==
Activates a licensed user.
== CMD_USAGE_ACTIVATEUSER ==
Usage:
user-name The user name or user names to activate. Use double quotes (" ")
to specify user names containing spaces. Use a whitespace to
separate user names.
Options:
--^server=<rep-server-spec> Activates the user in the specified server.
If no server is specified, executes the command
in the default server in the client.conf file.
(Use 'cm ^help ^objectspec' to learn more about
repserver specs.)
== CMD_HELP_ACTIVATEUSER ==
Remarks:
See the 'cm ^help ^deactivateuser' command for more information about
deactivating Plastic SCM users.
Examples:
cm ^activateuser john
cm ^activateuser david "mary collins"
cm ^au peter --^server=localhost:8087
== CMD_DESCRIPTION_ADD ==
Adds an item to version control.
== CMD_USAGE_ADD ==
Usage:
item-path The item or items to add. Use double quotes (" ") to specify
paths containing spaces. Use a whitespace to separate items.
Use * to add all the contents of the current directory.
Options:
== CMD_HELP_ADD ==
Remarks:
The '^add' command can read paths from stdin. To do this, pass a single dash
"-".
Example: cm ^add -
Examples:
cm ^add c:\workspace\file.txt
(Adds 'file.txt' item in path 'c:\workspace'.)
cm ^add -^R *
(Recursively adds all the contents of the current directory.)
== CMD_USAGE_ADDIGNOREPATTERN ==
Usage:
== CMD_DESCRIPTION_ADMIN ==
Executes administrative commands on the server.
== CMD_USAGE_ADMIN ==
Usage:
Available commands:
^readonly
== CMD_HELP_ADMIN ==
Remarks:
Only the server administrator can execute administrative commands.
Examples:
== CMD_DESCRIPTION_ADMIN_READONLY ==
Enables/disables the server readonly mode.
== CMD_USAGE_ADMIN_READONLY ==
Usage:
Actions:
^enter The server enters read-only mode. Write operations will be rejected.
^leave The server leaves read-only mode.
^status Shows the server read-only mode status.
Options:
server Executes the command in the specified server (server:port). (Use
'cm ^help ^objectspec' to learn more about server specs.)
If no server is specified, the command works with the server of the
current workspace.
If the current path is not in a workspace, the command works with
the default server defined in the client.conf config file.
== CMD_HELP_ADMIN_READONLY ==
Remarks:
Only the server administrator can enter the server readonly mode.
Examples:
== CMD_DESCRIPTION_ANNOTATE ==
Shows the changeset where each line of a file was last modified and its author.
== CMD_USAGE_ANNOTATE ==
Usage:
cm ^annotate | ^blame <spec>[ ...]
[--^format=<str_format>]
[--^ignore=(^eol | ^whitespaces | ^"eol&whitespaces" | ^none)]
[--^dateformat=<str_date_format>]
[--^encoding=<name>]
[--^stats]
[--^repository=<repspec>]
Options:
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).
--^stats Shows statistics information.
--^repository Specifies a repository spec used to calculate
the annotations. By default, this command uses the
repository where the loaded revision repository in the
workspace is stored. (Use 'cm ^help ^objectspec' to learn
more about repspecs.)
== CMD_HELP_ANNOTATE ==
Remarks:
--^ignore options:
^none Detects end of line and whitespace differences.
^eol Ignores end of line differences.
^whitespaces Ignores whitespace differences.
^"eol&whitespaces" Ignores end of line and whitespace differences.
--^format options:
The output parameters of this command are the following:
{^owner} User who changed the line the last time.
{^rev} Source revision specification of the line.
{^content} Line content.
{^date} Date when the line was checked in.
{^comment} Comment of the source revision of the line.
{^changeset} Changeset of the source revision of the line.
{^line} Line number of the file.
{^id} Item id.
{^parentid} Parent id of the item.
{^rep} Repository of the item.
{^branch} Branch of the source revision of the line.
{^ismergerev} Whether the revision of the line was created in a merge.
--^dateformat:
To specify the output format in which dates will be printed.
See the supported formats specified at:
https://docs.microsoft.com/en-us/dotnet/standard/base-types/custom-date-
and-time-format-strings
--^repository:
To retrieve data from a remote repository. Useful for distributed
scenarios.
Examples:
cm ^blame ^serverpath:/src/client/checkin/Checkin.cs#^cs:73666
(Annotates the file starting in changeset 73666 using a server path.)
== CMD_DESCRIPTION_APPLY_LOCAL ==
Checks for local changes (locally moved, locally deleted, and locally changed)
and applies them, so that Plastic SCM starts tracking those changes.
== CMD_USAGE_APPLY_LOCAL ==
Usage:
Options:
== CMD_HELP_APPLY_LOCAL ==
Remarks:
Examples:
cm ^applylocal .
(Applies all local changes in the current directory.)
cm ^applylocal
(Applies all local changes in the workspace.)
cm ^applylocal --^machinereadable
(Applies all local changes in the workspace, and prints the result in a
simplified, easier-to-parse format.)
== CMD_DESCRIPTION_ARCHIVE ==
Archives data in external storage.
== CMD_USAGE_ARCHIVE ==
Usage:
revspec One or more revision specs. Can be read from the STDIN
with the "-" modifier. (Use 'cm ^help ^objectspec' to
learn more about revspecs.)
--^restore Restores previously archived data from generated archive
files.
Options:
== CMD_HELP_ARCHIVE ==
Remarks:
This command extracts data from the repository database and store it on
external storage, saving database space.
The command can also restore previously archived revisions back into the
repository database (--^restore).
The user running this command must be the Plastic SCM server administrator
(repository server owner) to be allowed to complete the operation.
Once archived, the data from the specified revisions will be accessible in
two ways:
- From the client: The client will detect if the data was archived and it
will prompt the user to enter the location of the files.
Users can configure the external data location by creating a file named
externaldata.conf (at the standard configuration files locations, using
the same rules that apply for the client.conf file) containing the paths
where archived data have been located.
- From the server: This way users won't have to know whether the data was
archived or not, since requests will be transparently resolved by the
server. To do so, the administrator will create a file called
externaldata.conf in the server directory and will fill it with the
paths where the archived volumes are.
Examples:
cm ^archive bigfile.zip#^br:/main
(Archives the last revision of 'bigfile.zip' in branch 'main'.)
== CMD_DESCRIPTION_ATTRIBUTE ==
Allows the user to manage attributes.
== CMD_USAGE_ATTRIBUTE ==
Usage:
cm ^attribute | ^att <command> [options]
Commands:
^create | ^mk
^delete | ^rm
^set
^unset
^rename
^edit
== CMD_HELP_ATTRIBUTE ==
Examples:
== CMD_DESCRIPTION_CHANGELIST ==
Groups pending changes in changelists.
== CMD_USAGE_CHANGELIST ==
Usage:
Options:
clist_name The name of the changelist.
clist_desc The description of the changelist.
action_name Choose between '^rename' or '^description' to edit the
changelist.
action_value Applies the new name or new description when editing
the changelist.
--^persistent The changelist will remain in the workspace even if its
contents are checked-in or reverted.
--^notpersistent (Default) The changelist will not remain in the
workspace even if its contents are checked-in or
reverted.
--^symlink Applies the operation to the symlink and not to the
target.
== CMD_HELP_CHANGELIST ==
Remarks:
The '^changelist' command handles both the workspace pending changelists and
the changes contained in a changelist.
Examples:
cm ^changelist
(Shows the current workspace changelists.)
== CMD_DESCRIPTION_CHANGESET ==
Executes advanced operations on changesets.
== CMD_USAGE_CHANGESET ==
Usage:
Commands:
^move | ^mv
^delete | ^rm
^editcomment | ^edit
== CMD_HELP_CHANGESET ==
Examples:
== CMD_DESCRIPTION_CHANGESET_EDIT_COMMENT ==
Modifies the comment of a changeset.
== CMD_USAGE_CHANGESET_EDIT_COMMENT ==
Usage:
Options:
== CMD_HELP_CHANGESET_EDIT_COMMENT ==
Remarks:
Examples:
== CMD_DESCRIPTION_CHANGESET_MOVE ==
Moves a changeset and all its descendants to a different branch.
== CMD_USAGE_CHANGESET_MOVE ==
Usage:
Options:
== CMD_HELP_CHANGESET_MOVE ==
Remarks:
Examples:
== CMD_DESCRIPTION_CHANGESET_DELETE ==
Deletes a changeset from the repository.
== CMD_USAGE_CHANGESET_DELETE ==
Usage:
Options:
== CMD_HELP_CHANGESET_DELETE ==
Remarks:
Examples:
== CMD_DESCRIPTION_CHANGEUSERPASSWORD ==
Changes the user password (UP).
== CMD_USAGE_CHANGEUSERPASSWORD ==
Usage:
cm ^changepassword | ^passwd
== CMD_HELP_CHANGEUSERPASSWORD ==
Remarks:
Examples:
cm ^passwd
== CMD_DESCRIPTION_CHECKCONNECTION ==
Checks the connection to the server.
== CMD_USAGE_CHECKCONNECTION ==
Usage:
cm ^checkconnection | ^cc
== CMD_HELP_CHECKCONNECTION ==
Remarks:
== CMD_DESCRIPTION_CHECKDB ==
Checks the repositories integrity.
== CMD_USAGE_CHECKDB ==
Usage:
Use 'cm ^help ^objectspec' to learn more about repserver and rep specs.
== CMD_HELP_CHECKDB ==
Remarks:
Examples:
cm ^checkdatabase ^repserver:localhost:8084
cm ^chkdb ^rep:default@localhost:8084
== CMD_DESCRIPTION_CHECKIN ==
Stores changes in the repository.
== CMD_USAGE_CHECKIN ==
Usage:
Options:
== CMD_HELP_CHECKIN ==
Remarks:
The '^checkin' command can read paths from stdin. To do this, pass a single
dash "-".
Example: cm ^checkin -
cm ^checkin . -^commentsfile=mycomment.txt
(Checkins the current directory and sets the comment in the
'mycomment.txt' file.)
cm ^ci . --^machinereadable
(Checkins the current directory, and prints the result in a simplified,
easier-to-parse format.)
== CMD_DESCRIPTION_CHECKOUT ==
Marks files as ready to modify.
== CMD_USAGE_CHECKOUT ==
Usage:
Options:
== CMD_HELP_CHECKOUT ==
Remarks:
To checkout an item:
- The item must be under source code control.
- The item must be checked in.
If locks are configured on the server (lock.conf exists), then each time
a checkout on a path happens, Plastic checks if it meets any of the rules
and if so, the path will be in exclusive checkout (locked) so that none can
simultaneously checkout.
You can get all the locks in the server by using 'cm ^lock ^list'.
See the Administrator Guide for more information:
https://www.plasticscm.com/download/help/adminguide
The format string replaces the placeholder '{0}' with the path of the item
being checked out. Check the examples to see how to use it.
The '^checkout' command can read paths from stdin. To do this, pass a single
dash "-".
Example: cm ^checkout -
Examples:
cm ^co *.txt
(Checkouts all txt files.)
cm ^checkout .
(Checkouts current directory.)
== CMD_DESCRIPTION_CHECKSELECTORSYNTAX ==
Checks the syntax of a selector.
== CMD_USAGE_CHECKSELECTORSYNTAX ==
Usage:
== CMD_HELP_CHECKSELECTORSYNTAX ==
Remarks:
Examples:
cm ^checkselectorsyntax --^file=myselector.txt
(Checks the syntax of 'myselector.txt' file.)
== CMD_DESCRIPTION_CHGREVTYPE ==
Changes an item revision type (binary or text).
== CMD_USAGE_CHGREVTYPE ==
Usage:
item_path Items to change revision type. Use double quotes (" ")
to specify paths containing spaces. Use a whitespace to
separate item paths.
--^type Target revisions type. Choose '^bin' or '^txt'.
== CMD_HELP_CHGREVTYPE ==
Remarks:
Examples:
== CMD_DESCRIPTION_TRIGGER_EDIT ==
Edits a trigger.
== CMD_USAGE_TRIGGER_EDIT ==
Usage:
Options:
== CMD_HELP_TRIGGER_EDIT ==
Remarks:
Examples:
== CMD_DESCRIPTION_CODEREVIEW ==
Creates, edits, or deletes code reviews.
== CMD_USAGE_CODEREVIEW ==
Usage:
Options:
== CMD_HELP_CODEREVIEW ==
Remarks:
This command allows users to manage code reviews: create, edit, and delete
code reviews for changesets or branches.
To create a new code review, a changeset/branch spec and a title are
required. The initial status and assignee can be set, too. An ID (or GUID
if requested) will be returned as a result.
The status parameter can only be one of the following: ^"Under review"
(default), ^"Reviewed", or ^"Rework required".
Please note that the '--^format' parameter only takes effect when creating
a new code review.
Examples:
== CMD_DESCRIPTION_CRYPT ==
Encrypts a password.
== CMD_USAGE_CRYPT ==
Usage:
cm ^crypt <mypassword>
== CMD_HELP_CRYPT ==
Remarks:
Examples:
== CMD_USAGE_DEACTIVATEUSER ==
Usage:
Options:
== CMD_HELP_DEACTIVATEUSER ==
Remarks:
This command sets a user to inactive, disabling the usage of Plastic SCM
for that user.
See the 'cm ^activateuser' command for more information about activating
Plastic SCM users.
This command checks whether the user exists on the underlying authentication
system (e.g. ActiveDirectory, LDAP, User/Password...).
To force the deactivation of a user that no longer exists on the
authentication system, you can use the '--^nosolveuser' option.
Examples:
cm ^deactivateuser john
cm ^du peter "mary collins"
cm ^deactivateuser john --^server=myserver:8084
cm ^deactivateuser S-1-5-21-3631250224-3045023395-1892523819-1107 --
^nosolveuser
== CMD_DESCRIPTION_DIFF ==
Shows differences between files, changesets, and labels.
== CMD_USAGE_DIFF ==
Usage:
Options:
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).
--^ignore Sets the specified comparison method.
See Remarks for more info.
--^clean Does not take into account the differences generated
because of a merge, but only the differences created by
simple checkins.
--^format Retrieves the output message in a specific format. See
Remarks for more info.
--^dateformat Format used to output dates.
--^fullpaths, --^fp Forces printing full workspace paths for files and
directories when possible.
== CMD_HELP_DIFF ==
Remarks:
Comparison methods:
^eol Ignores the end of line differences.
^whitespaces Ignores the whitespace differences.
^"eol&whitespaces" Ignores the end of line and whitespace differences.
^none Detects the end of line and whitespace differences.
Notes on '^revid':
For added items, the '^baserevid' and '^parentrevid' will be -1, as no
previous revision exists in this case.
For deleted items, the '^revid' is the id of the source revision, and the
'^baserevid' will be -1, as there is no destination revision.
For Xlinks, both '^baserevid' and '^parentrevid' are always -1.
Examples:
Comparing branches:
cm ^diff ^br:/main/task001
cm ^diff ^br:/main/task001 \doc\readme.txt
cm ^diff 19
cm ^diff 19 25
cm ^diff ^cs:19 ^cs:25 --^format="{^path} {^parentrevid}"
cm ^diff ^cs:19 ^cs:23 --^format="{^date} {^path}" --^dateformat="yy/dd/MM
HH:mm:ss"
cm ^diff ^cs:19 ^cs:23 --^changed
cm ^diff ^cs:19 ^cs:23 --^repositorypaths
cm ^diff ^cs:19 ^cs:23 --^download="D:\temp"
cm ^diff ^cs:19 ^cs:23 --^clean
cm ^diff ^cs:19 ^cs:23 \doc\readme.txt
cm ^diff ^sh:2
cm ^diff ^sh:2 ^sh:4
Comparing revspecs:
cm ^diff ^rev:readme.txt#^cs:19 ^rev:readme.txt#^cs:20
cm ^diff ^serverpath:/doc/readme.txt#^cs:19@myrepo \
^serverpath:/doc/readme.txt#^br:/main@myrepo@localhost:8084
== CMD_DESCRIPTION_DIFFMETRICS ==
Shows diff metrics between two revs.
== CMD_USAGE_DIFFMETRICS ==
Usage:
Options:
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).
--^ignore Sets the specified comparison method.
See Remarks for more info.
== CMD_HELP_DIFFMETRICS ==
Remarks:
Examples:
== CMD_DESCRIPTION_FASTEXPORT ==
Exports a repository in fast-export format.
== CMD_USAGE_FASTEXPORT ==
Usage:
Options:
== CMD_HELP_FASTEXPORT ==
Remarks:
- In order to import a Plastic SCM repository to Git, use a command such as:
^cat repo.fe.00 | ^git ^fast-import --^export-marks=marks.git --^import-
marks=marks.git
- Incremental export is supported using a marks file that contains the
changesets previously imported ('--^import-marks' and '--^export-marks'
files).
This means that only the new changesets that were not exported in the
previous fast-export will be exported.
Examples:
== CMD_DESCRIPTION_FASTIMPORT ==
Imports Git fast-export data into a repository.
== CMD_USAGE_FASTIMPORT ==
Usage:
Options:
Examples:
== CMD_DESCRIPTION_FILEINFO ==
Retrieves detailed information about the items in the workspace.
== CMD_USAGE_FILEINFO ==
Usage:
Options:
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).
== CMD_HELP_FILEINFO ==
Remarks:
This command prints a detailed list of attributes for each selected item.
Each attribute is printed on a new line by default.
The attribute list can be modified to display only the attributes the user
needs. This can be achieved using the '--^fields=<field_list>', which accepts
a string of comma-separated attribute names. This way, only those arguments
whose name has been indicated are shown.
You can find below the complete list of available attribute names.
Names marked with an asterisk ('*') will not be shown by default:
^ClientPath The local path on disk for the item.
^RelativePath The workspace-relative path.
^ServerPath The repository path for the item.
(Note: Transformed workspaces are not
currently supported for this option).
^Size Item size.
^Hash Item hash sum.
^Owner The user the item belongs to.
^RevisionHeadChangeset (*) The changeset of the revision loaded in the
head changeset of the branch.
(Please see note above.)
^RevisionChangeset The changeset of the revision currently loaded
in the workspace.
^RepSpec The repository specification for the item.
(Use 'cm ^help ^objectspec' to learn more about
rep specs.)
^Status The workspace item status: added, checked out,
deleted, etc.
^Type Revision type (text, binary, directory, symlink,
or unknown).
^Changelist The changelist the item belongs to (if any).
^IsLocked (*) Whether the item is locked by exclusive
checkout or not.
^LockedBy (*) The user who exclusively checked out the item.
^LockedWhere (*) The location where the item was exclusively
checked out.
^IsUnderXlink Whether the item is located under an Xlink
or not.
^UnderXlinkTarget The target of the Xlink the item is under
(if any).
^UnderXlinkPath The item server path in the Xlinked repository
(if any).
^UnderXlinkWritable Whether the Xlink the item belongs to is
writable or not.
^UnderXlinkRelative Whether the Xlink the items belongs to is
relative or not.
^IsXlink Whether the item itself is a Xlink or not.
^XlinkTarget The target repository the item points to, if it
is a Xlink.
^XlinkName The Xlink name of the item, if it is
actually one.
^XlinkWritable Whether the Xlink item is a writable Xlink
or not.
^XlinkRelative Whether the Xlink item is a relative Xlink
or not.
Please note that '--^format' and '--^xml' options are mutually exclusive, so
they can't be used at the same time.
Examples:
== CMD_DESCRIPTION_FIND_QUERY ==
Runs SQL-like queries to find Plastic SCM objects.
== CMD_USAGE_FIND_QUERY ==
Usage:
cm ^find <object_type>
[^where <str_conditions>]
[^on ^repository '<repspec>' | ^on ^repositories
'<repspec1>','<repspec2>'[,...]]
[--^format=<str_format>] [--^dateformat=<date_format>]
[--^nototal] [--^file=<dump_file>] [--^xml]
[--^encoding=<name>]
Options:
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).
== CMD_HELP_FIND_QUERY ==
Remarks:
When you run queries using comparison operators (>, <, >=, <=) from the
command line, remember that the shell considers these operators as IO
redirections. So you will need to enclose the queries in double quotation
marks.
The 'cm ^find' command accepts a format string to show the output.
Each output parameter is identified by a string and the user can refer it
by typing the parameter number between '{' and '}' brackets.
Output parameters usually correspond to the attributes of the object.
When the '--^xml' option is specified, the command shows the command result
as an XML text in the standard output. The operating system default encoding
is used to show the text, so it is possible that not-ANSI characters are
incorrectly visualized in the console. If you redirect the command output to
a file, it will be correctly visualized. When both '--^xml' and '--^file'
options are specified, the default encoding will be utf-8.
Examples:
cm ^find ^revision
cm ^find ^revision "^where ^changeset=23 ^and ^owner='maria'"
cm ^find ^branch "^on ^repository 'rep1'"
cm ^find ^label "^on ^repositories 'rep1', '^rep:default@localhost:8084'"
cm ^find ^branch "^where ^parent='^br:/main' ^on ^repository 'rep1'"
cm ^find ^revision "^where ^item='^item:.'" --^format="{^item}#{^branch}"
cm ^find ^revision "^where ^item='^item:.'" --^xml --^file=c:\queryresults\
revs.xml
== CMD_DESCRIPTION_FINDCHANGED ==
Gets a list of changed files. This command is deprecated and kept just for
backwards compatibility. Use 'cm ^status' instead.
== CMD_USAGE_FINDCHANGED ==
Usage:
Options:
== CMD_HELP_FINDCHANGED ==
Remarks:
Examples:
cm ^findchanged .
(Finds changed files in the current directory.)
== CMD_DESCRIPTION_FINDCHECKEDOUT ==
Gets a list of checked out items. This command is deprecated and kept just for
backwards compatibility. Use 'cm ^status' instead.
== CMD_USAGE_FINDCHECKEDOUT ==
Usage:
Options:
== CMD_HELP_FINDCHECKEDOUT ==
Remarks:
Examples:
== CMD_DESCRIPTION_FINDPRIVATE ==
Gets a list of private items. This command is deprecated and kept just for
backwards compatibility. Use 'cm ^status' instead.
== CMD_USAGE_FINDPRIVATE ==
Usage:
cm ^findprivate | ^fp [-^R | -^r | --^recursive] [--^exclusions] [<path>]
Options:
== CMD_HELP_FINDPRIVATE ==
Remarks:
If any path is specified, Plastic SCM will begin searching from the
current directory.
This command is useful to add private items on a folder, piping the output
to the add command. See examples.
Examples:
cm ^findprivate .
== CMD_DESCRIPTION_GETCONFIG ==
Obtains configuration info.
== CMD_USAGE_GETCONFIG ==
Usage:
== CMD_HELP_GETCONFIG ==
Examples:
cm ^getconfig ^setfileasreadonly
== CMD_DESCRIPTION_GETFILE ==
Downloads the content of a given revision.
== CMD_USAGE_GETFILE ==
Usage:
Options:
--^file File to save the output. By default, it is printed on the
standard output.
--^debug When a directory specification is used, the command
shows all the items in the directory, its revision id
and file system protection.
--^symlink Applies the operation to the symlink and not to the
target.
--^raw Displays the raw data of the file.
== CMD_HELP_GETFILE ==
Examples:
cm ^cat myfile.txt#^br:/main
(Obtains the last revision in branch '^br:/main' of 'myfile.txt'.)
cm ^cat ^serverpath:/src/foo.c#^br:/main/task003@myrepo
(Obtains the contents of '/src/foo.c' at the last changeset of branch
'/main/task003' in repository 'myrepo')
cm ^cat ^revid:1230@^rep:myrep@^repserver:myserver:8084
(Obtains the revision with id 1230.)
== CMD_DESCRIPTION_GETREVISION ==
Loads a revision in the workspace.
== CMD_USAGE_GETREVISION ==
This command modifies the revision loaded in the workspace, so it can affect
future merges.
It is an advanced command inherited from old versions, so use it with care.
Usage:
cm ^getrevision <revspec>
== CMD_HELP_GETREVISION ==
Examples:
cm ^getrevision file.txt#^cs:3
(Gets changeset 3 revision of 'file.txt'.)
== CMD_DESCRIPTION_GETSTATUS ==
Gets the status of an item.
== CMD_USAGE_GETSTATUS ==
This is an automation command, meant to be used to automate 'cm' only.
It is not as user friendly as it should be.
Usage:
Options:
== CMD_HELP_GETSTATUS ==
Remarks:
The '^getstatus' command can read paths from stdin. To do this, pass a
single dash "-".
Example: cm ^getstatus -
Examples:
cm ^gs info\ -^R --^format="The item {0} has the status {1}"
(Gets the status of the directory and all of its items and shows a
formatted output.)
== CMD_DESCRIPTION_GETTASKBRANCHES ==
Gets branches linked with a task.
== CMD_USAGE_GETTASKBRANCHES ==
This is an automation command, meant to be used to automate 'cm' only.
It is not as user friendly as it should be.
Usage:
== CMD_HELP_GETTASKBRANCHES ==
Remarks:
Examples:
cm ^gettaskbranches 4311
cm ^gtb 4311 --^format="^br:{^name}"
cm ^gtb 4311 --^format="^br:{^name} {^date}" --^dateformat="yyyy/MM/dd
HH:mm:ss"
== CMD_DESCRIPTION_GETWWI ==
Shows info about the workspace selector.
== CMD_USAGE_GETWWI ==
Usage:
cm ^wi [<wk_path>]
Options:
== CMD_HELP_GETWWI ==
Remarks:
The '^wi' command shows the working configuration of a workspace (repository,
branch, and/or label).
Examples:
cm ^wi c:\mywk
== CMD_DESCRIPTION_GWP ==
Gets workspace info from a path.
== CMD_USAGE_GWP ==
This is an automation command, meant to be used to automate 'cm' only.
It is not as user friendly as it should be.
Usage:
Options:
--^format Retrieves the output message in a specific format. See
Remarks for more info.
== CMD_HELP_GWP ==
Remarks:
This command shows information about the workspace that is located in path.
Examples:
== CMD_DESCRIPTION_HELP ==
Gets help for a Plastic SCM command.
== CMD_USAGE_HELP ==
Usage:
cm ^help <command>
== CMD_HELP_HELP ==
== CMD_DESCRIPTION_IOSTATS ==
Shows statistics about the hardware.
== CMD_USAGE_IOSTATS ==
Usage:
Options:
== CMD_HELP_IOSTATS ==
Remarks:
Available tests:
--^serveruploadtest (Default) Measures the data upload speed from
Plastic SCM client to the server.
--^serverdownloadtest (Default) Measures the data download speed from
Plastic SCM server to the client.
--^disktest (Default) Measures the disk read speed and disk
write speed.
--^systemnetworkusage Shows the current usage of system network
resources.
(It shows Network Interface performance counters
provided by Microsoft Windows).
Available in Microsoft Windows only.
--^systemdiskusage Shows the current usage of system physical
disks.
(It shows Network Interface performance counters
provided by Microsoft Windows).
Available in Microsoft Windows only.
Examples:
== CMD_DESCRIPTION_ISSUETRACKER ==
Gets, updates, or finds the issue status in the specified issue tracker.
== CMD_USAGE_ISSUETRACKER ==
Usage:
== CMD_HELP_ISSUETRACKER ==
Examples:
== CMD_DESCRIPTION_LICENSEINFO ==
Displays license information and license usage.
== CMD_USAGE_LICENSEINFO ==
Usage:
Options:
== CMD_HELP_LICENSEINFO ==
Remarks:
Examples:
cm ^licenseinfo
cm ^licenseinfo --^server=myserver:8084
cm ^licenseinfo --^sort=^name
== CMD_DESCRIPTION_LINKTASK ==
Links a changeset to a task.
== CMD_USAGE_LINKTASK ==
This is an automation command, meant to be used to automate 'cm' only.
It is not as user friendly as it should be.
Usage:
== CMD_HELP_LINKTASK ==
Examples:
== CMD_DESCRIPTION_LOCK_LIST ==
Shows locks on a server.
== CMD_USAGE_LOCK_LIST ==
Usage:
Options:
== CMD_HELP_LOCK_LIST ==
Remarks:
The command will display a list of the currently locked items in the
default server. It also accepts a list of revision specifications; in that
case, only the locks belonging to the selected items will be displayed.
A '--^server=<server>' can be used to set the default server to query.
The command shows a line for every lock in the specified server:
- GUID of the locked item.
- User name who performed the lock.
- Workspace name where the lock was performed.
- Path of the locked item (server path format).
Examples:
cm ^lock ^list
cm ^lock ^list --^server=myserver:8084
cm ^lock ^ls ^serverpath:/src/foo.c#^cs:99@default@localhost:8084
cm ^lock ^list ^revid:3521@default ^itemid:2381@secondary --^onlycurrentuser
cm ^lock ^ls --^onlycurrentuser
cm ^lock ^ls --^onlycurrentuser --^onlycurrentworkspace
== CMD_DESCRIPTION_LISTUSERS ==
Lists users and groups.
== CMD_USAGE_LISTUSERS ==
Usage:
cm ^listusers | ^lu <repserverspec> [--^onlyusers] [--^onlygroups]
[--^filter= <str_filter>]
Options:
== CMD_HELP_LISTUSERS ==
Examples:
cm ^lu localhost:8084
(Lists all users in the server.)
== CMD_DESCRIPTION_LOCATION ==
Returns the path of 'cm'.
== CMD_USAGE_LOCATION ==
Usage:
cm ^location
== CMD_HELP_LOCATION ==
== CMD_DESCRIPTION_LOCK ==
This command allows the user to manage locks.
== CMD_USAGE_LOCK ==
Usage:
Commands:
^list | ^ls
^unlock
== CMD_HELP_LOCK ==
Examples:
cm ^lock ^list
cm ^lock
('^list' is optional if there are no arguments.)
cm ^lock ^ls ^serverpath:/src/foo.c#^cs:99@default@localhost:8084
cm ^lock ^unlock 91961b14-3dfe-4062-8c4c-f33a81d201f5
== CMD_DESCRIPTION_LOG ==
Gets info about revisions in changesets.
== CMD_USAGE_LOG ==
Usage:
Options:
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).
--^fullpaths, --^fp Force printing full workspace paths for files and
directories when possible.
--^repositorypaths Prints repository paths (server paths) instead of
workspace paths. (This option overrides the
'--^fullpaths' option).
== CMD_HELP_LOG ==
Remarks:
This command accepts a format string for the items ('--^itemformat') and a
format string for the changesets ('--^csformat').
Examples:
cm ^log
(Shows information about every changeset created in the last month in every
branch.)
cm ^log ^cs:16
(Shows information about the changes done in the changeset 16 in the branch
where the changeset was created.)
cm ^log ^cs:16 --^csformat="{^newline}Changeset {^changesetid} created on \
{^date};{^tab} changed items: {^items}."
(Shows the information in the specified format.)
cm ^log ^rep:myrep@localhost:8084
(Shows information about the changes done in the specified repository.
No workspace is required to run the command.)
cm ^log --^from=^cs:20@^rep:mainRep@localhost:8084
(Shows the information about every revision contained in every changeset
from the changeset 21. No workspace is required to run the command, because
the full changeset spec was specified.)
== CMD_DESCRIPTION_LS ==
Lists the contents of a tree.
== CMD_USAGE_LS ==
Usage:
Options:
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).
== CMD_HELP_LS ==
Remarks:
You can customize the '^ls' format setting the PLASTIC_LS_FORMAT environment
variable.
Examples:
cm ^ls
cm ^ls c:\workspace\src
cm ^ls --^format={^name}
(Only file names.)
cm ^ls --^symlink
(Displays information about the symlink instead of the 'symlinked' file or
directory. Available on UNIX environments.)
== CMD_DESCRIPTION_TRIGGER_LIST ==
Lists the triggers of a given type on a server.
== CMD_USAGE_TRIGGER_LIST ==
Usage:
Options:
== CMD_HELP_TRIGGER_LIST ==
Remarks:
If the type is not specified, lists all the triggers on the server.
Examples:
cm ^trigger list after-mklabel
cm ^tr ^ls ^before-mkbranch --^server=myserver:8084
== CMD_DESCRIPTION_MANIPULATESELECTOR ==
Changes the selector to a date.
== CMD_USAGE_MANIPULATESELECTOR ==
This is an automation command, meant to be used to automate 'cm' only.
It is not as user friendly as it should be.
Usage:
== CMD_HELP_MANIPULATESELECTOR ==
Remarks:
If neither path nor workspace spec is specified, the command will take the
current directory as workspace path.
Examples:
== CMD_DESCRIPTION_MERGE ==
Merges a branch with another branch.
== CMD_USAGE_MERGE ==
Usage:
Options:
== CMD_HELP_MERGE ==
Remarks:
These are the options that are mainly used by plugins and integrations:
- '--^resolveconflict' to solve a directory conflict. You also have to
use the following options:
- '--^conflict' is the index of the conflict that you want to
solve, starting at 1.
- '--^resolutionoption' indicates the conflict resolution to
use. This can be:
- '^src' to keep the source change and discard the
destination change
- '^dst' to keep the destination change and discard the
source change
- '^rename' (only if the conflict type supports this
resolution), to rename the destination to the given name
provided with the '--^resolutioninfo' option.
- '--^resolutioninfo' to provide the name to use on a
'^rename' resolution
- '--^mergeresultfile' and '--^solvedconflictsfile', both used to
store the merge info between different calls.
- '--^nointeractiveresolution' indicates the merge to not ask the user for
manual conflict resolution.
- '--^machinereadable' and '--^startlineseparator', '--^endlineseparator',
'--^fieldseparator' options to print the output on a machine-readable
way (easier-to-parse).
Example:
cm ^merge --^machinereadable --^startlineseparator=start@_@line \
--^endlineseparator=new@_@line --^fieldseparator=def#_#sep \
--^mergeresultfile=C:\Users\Borja\AppData\Local\Temp\2tmp4D6C.tmp \
--^solvedconflictsfile=C:\Users\Borja\AppData\Local\Temp\2tmp4D6D.tmp \
--^resolveconflict --^conflict=1 --^resolutionoption=rename \
--^resolutioninfo=bin_dst ^br:/main/task --^merge
Examples:
cm ^merge ^br:/task001
(Does not merge, just prints items to be merged.)
== CMD_DESCRIPTION_ATTRIBUTE_CREATE ==
Creates a new attribute.
== CMD_USAGE_ATTRIBUTE_CREATE ==
Usage:
== CMD_HELP_ATTRIBUTE_CREATE ==
Examples:
== CMD_DESCRIPTION_BRANCH ==
Allows the user to manage branches.
== CMD_USAGE_BRANCH ==
Usage:
Commands:
^create | ^mk
^delete | ^rm
^rename
^history
^showmain
^showmerges
== CMD_HELP_BRANCH ==
Examples:
cm ^branch /main/scm21345
cm ^branch ^create /main/scm21345
cm ^branch ^delete /main/scm21345
cm ^branch ^rename /main/scm21345 scm21346
cm ^branch ^history /main/scm21345
cm ^branch ^showmain
cm ^branch ^showmerges file.txt
== CMD_DESCRIPTION_BRANCH_CREATE ==
Creates a new branch.
== CMD_USAGE_BRANCH_CREATE ==
Usage:
Options:
== CMD_HELP_BRANCH_CREATE ==
Remarks:
cm ^br /dev
You can specify a comment using either the '-^c' or the '-^m' switches:
Examples:
cm ^branch task001
cm ^branch ^create task001
cm ^branch ^mk task001
cm ^br ^mk task001
(Creates a top-level 'task001' branch in the repository of the current
workspace.)
cm ^branch ^br:/task001/task002@
(Creates 'task002' branch as child of 'task001'.)
== CMD_DESCRIPTION_BRANCH_DELETE ==
Deletes one or more branches.
== CMD_USAGE_BRANCH_DELETE ==
Usage:
== CMD_HELP_BRANCH_DELETE ==
Remarks:
Examples:
== CMD_DESCRIPTION_BRANCH_RENAME ==
Renames a branch.
== CMD_USAGE_BRANCH_RENAME ==
Usage:
== CMD_HELP_BRANCH_RENAME ==
Remarks:
== CMD_DESCRIPTION_BRANCH_HISTORY ==
Shows the history of a branch.
== CMD_USAGE_BRANCH_HISTORY ==
Usage:
Options:
== CMD_HELP_BRANCH_HISTORY ==
Examples:
== CMD_DESCRIPTION_BRANCH_SHOWMAIN ==
Shows the main branch of a repository.
This is an automation command, meant to be used to automate 'cm' only.
Most likely, the main branch of your repository is '/main'.
== CMD_USAGE_BRANCH_SHOWMAIN ==
Usage:
Options:
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).
--^format Retrieves the output message in a specific format. See
Remarks for more info.
--^dateformat Format used to output dates.
== CMD_HELP_BRANCH_SHOWMAIN ==
Remarks:
Examples:
cm ^branch ^showmain
(Displays the main branch for the repository of the current workspace.)
== CMD_DESCRIPTION_BRANCH_SHOWMERGES ==
Shows branches pending to be merged.
== CMD_USAGE_BRANCH_SHOWMERGES ==
This is an automation command, meant to be used to automate 'cm' only.
It is not as user friendly as it should be.
Usage:
Options:
--^format Retrieves the output message in a specific format. See
Remarks for more info.
--^dateformat Format used to output dates.
== CMD_HELP_BRANCH_SHOWMERGES ==
Remarks:
This command accepts a format string to show the output.
The output parameters of this command are the following:
{^id} Branch id.
{^comment} Comment.
{^date} Date.
{^name} Name.
{^owner} Owner.
{^parent} Parent branch name.
{^parentid} Parent branch id.
{^repid} Repository id.
{^repository} Repository.
{^repname} Repository name.
{^repserver} Repository server.
Examples:
== CMD_DESCRIPTION_REPOSITORY ==
Allows the user to manage repositories.
== CMD_USAGE_REPOSITORY ==
Usage:
Commands:
^create | ^mk
^delete | ^rm
^list | ^ls
^rename
^add
== CMD_HELP_REPOSITORY ==
Examples:
cm ^repository
cm ^repository ^list
cm ^repository newrepo
cm ^repository ^create newrepo
cm ^repository ^rename oldname newname
cm ^repository ^add C:\repo\
== CMD_DESCRIPTION_REPOSITORY_CREATE ==
Creates a repository on a server.
== CMD_USAGE_REPOSITORY_CREATE ==
Usage:
== CMD_HELP_REPOSITORY_CREATE ==
Examples:
cm ^repository MyRep
cm ^repo 192.168.1.140:8087 Rep01 Rep01/ModuleA Rep01/ModuleB
cm ^repo ^create Rep01
cm ^repo ^mk list
== CMD_DESCRIPTION_REPOSITORY_DELETE ==
Deletes a repository from a server.
== CMD_USAGE_REPOSITORY_DELETE ==
Usage:
Options:
== CMD_HELP_REPOSITORY_DELETE ==
Remarks:
Examples:
== CMD_DESCRIPTION_REPOSITORY_LIST ==
Lists the repositories on a server.
== CMD_USAGE_REPOSITORY_LIST ==
Usage:
Options:
== CMD_HELP_REPOSITORY_LIST ==
Remarks:
Examples:
cm ^repository
(Lists all repositories.)
== CMD_DESCRIPTION_REPOSITORY_RENAME ==
Renames a repository.
== CMD_USAGE_REPOSITORY_RENAME ==
Usage:
== CMD_HELP_REPOSITORY_RENAME ==
Remarks:
Examples:
cm ^repository ^rename development
(The current repository will be renamed to 'development'.)
== CMD_DESCRIPTION_REPOSITORY_ADD ==
Connects an existing repository by adding its database.
== CMD_USAGE_REPOSITORY_ADD ==
Usage:
== CMD_HELP_REPOSITORY_ADD ==
Remarks:
Examples:
== CMD_DESCRIPTION_TRIGGER_CREATE ==
Creates a new trigger on a server.
== CMD_USAGE_TRIGGER_CREATE ==
Usage:
Options:
== CMD_HELP_TRIGGER_CREATE ==
Remarks:
Examples:
== CMD_DESCRIPTION_MOVE ==
Moves or renames a file or directory.
== CMD_USAGE_MOVE ==
Usage:
Options:
== CMD_HELP_MOVE ==
Remarks:
Examples:
== CMD_DESCRIPTION_LABEL ==
Allows the user to manage labels.
== CMD_USAGE_LABEL ==
Usage:
Commands:
^create | ^mk
^delete | ^rm
^rename
== CMD_HELP_LABEL ==
Examples:
== CMD_DESCRIPTION_LABEL_CREATE ==
Applies a label to a changeset and creates the label if required.
== CMD_USAGE_LABEL_CREATE ==
Usage:
Options:
== CMD_HELP_LABEL_CREATE ==
Remarks:
Examples:
== CMD_DESCRIPTION_LABEL_DELETE ==
Deletes one or more labels.
== CMD_USAGE_LABEL_DELETE ==
Usage:
== CMD_HELP_LABEL_DELETE ==
Remarks:
Examples:
== CMD_DESCRIPTION_LABEL_RENAME ==
Renames a label.
== CMD_USAGE_LABEL_RENAME ==
Usage:
== CMD_HELP_LABEL_RENAME ==
Remarks:
Examples:
== CMD_DESCRIPTION_OBLITERATE ==
DEPRECATED
== CMD_USAGE_OBLITERATE ==
DEPRECATED.
== CMD_HELP_OBLITERATE ==
DEPRECATED.
== CMD_DESCRIPTION_OBJECTSPEC ==
Describes how to write object specs.
== CMD_USAGE_OBJECTSPEC ==
Usage:
cm ^objectspec
To get all the information about how to build object specs.
== CMD_HELP_OBJECTSPEC ==
Several Plastic SCM commands expect 'object specs' as input to refer to a
given object (typically a branch, changeset, repository, etc).
Each spec type begins with a unique tag, for example "^rep:" or "^cs:". The tag
must be specified for commands that take a general object spec, for example
"cm ^setowner object_spec", but can often be omitted for commands that take only
a single type of spec, for example, "cm ^getfile revision_spec".
Examples:
cm ^repo ^list ^repserver:skull:8084
cm ^repo ^list skull:8084
Side note:
We call it 'repository server spec', instead of just 'server spec' for
historical reasons. Long ago, we had separate workspace and repository
servers, and the naming survived.
Examples:
cm ^showowner ^rep:codice@localhost:6060
(Here the "^rep:" is required because ^showowner admits not only repos
but also other types of objects. So it needs the user to indicate the
object type.)
Examples:
cm ^switch ^br:/main@^rep:plastic@^repserver:skull:9095
(In this case "^br:", "^rep" and "^repserver" are not needed, so the
command admits a much shorter form:
"cm ^switch main@plastic@skull:9095".)
Remark:
The initial '/' on the branch is not mandatory. We used to specify all
our branches as /main, /main/task001, and so on. But now, we prefer the
shorter form main, main/task001 which makes commands more compact.
Examples:
cm ^ls /code --^tree=ae1390ed-7ce9-4ec3-a155-e5a61de0dc77@code@skull:7070
Examples:
cm ^switch ^lb:RELEASE2.0
cm ^switch ^lb:RELEASE1.4@myrep@MYSERVER:8084
-- Revision spec --
There are different types of rev specs:
^rev:item_path[#(brspec|csetspec|labelspec)]
^rev:^serverpath:item_path#(brspec|cset_spec|lb_spec)
^rev:^revid:rev_id[@rep_spec]
^rev:^itemid:item_id#(br_spec|cset_spec|lb_spec)
Examples:
cm ^diff ^rev:readme.txt#^cs:19 ^rev:readme.txt#^cs:20
cm ^diff ^serverpath:/doc/readme.txt#^cs:19@myrepo \
^serverpath:/doc/readme.txt#^br:/main@myrepo@localhost:8084
cm ^cat ^revid:1230@^rep:myrep@^repserver:myserver:8084
-- Item spec --
^item:path
Rarely used.
Example:
cm ^find ^revision "^where ^item='^item:.'"
-- Attribute spec --
^att:att_name[@repspec]
Example:
cm ^attribute ^set ^att:merged@code@doe:8084 ^cs:25@code@doe:8084 done
-- Shelve spec --
^sh:sh_number[@repspec]
Example:
cm ^diff ^sh:2 ^sh:4
-- Workspace specs --
^wk:name@clientmachine
Rarely used, since they only apply to workspace related commands. Useful to
specify the workspace by name and machine instead of path.
Examples:
cm ^showselector ^wk:codebase@modok
Side note:
These specs come from the old days of Plastic SCM 2.x where 'workspace
servers' existed as a way to store workspace metadata in a centralized
way. Were deprecated due to performance issues.
== CMD_DESCRIPTION_PARTIAL ==
Runs commands in a partial workspace.
== CMD_USAGE_PARTIAL ==
Usage:
Commands:
^configure
^add
^undo
^co | ^checkout
^unco | ^undocheckout
^ci | ^checkin
^mv | ^move
^rm | ^remove
^stb | ^switch
^upd | ^update
== CMD_HELP_PARTIAL ==
Examples:
== CMD_USAGE_PARTIAL_ADD ==
Usage:
item_path Items to add. Use double quotes (" ") to specify paths
containing spaces. Use a whitespace to separate paths.
Use * to add all the contents of the current directory.
Options:
== CMD_HELP_PARTIAL_ADD ==
Remarks:
Examples:
== CMD_DESCRIPTION_PARTIAL_CHECKIN ==
Stores changes in the repository.
== CMD_USAGE_PARTIAL_CHECKIN ==
Usage:
== CMD_HELP_PARTIAL_CHECKIN ==
Remarks:
The '^partial ^checkin' command can read paths from stdin. To do this, pass a
single dash "-".
Example: cm ^partial ^checkin -
Examples:
cm ^partial ^checkin figure.png landscape.png
(Applies the checkin to 'figure.png' and 'landscape.png' checked-out files.)
== CMD_DESCRIPTION_PARTIAL_CHECKOUT ==
Marks files as ready to modify.
== CMD_USAGE_PARTIAL_CHECKOUT ==
Usage:
Options:
== CMD_HELP_PARTIAL_CHECKOUT ==
Remarks:
To checkout an item:
- The item must be under source code control.
- The item must be checked in.
If locks are configured on the server (lock.conf exists), then each time
a checkout on a path happens, Plastic checks if it meets any of the rules
and if so, the path will be in exclusive checkout (locked) so that none can
simultaneously checkout.
You can get all the locks in the server by using 'cm ^lock ^list'.
Check the Administrator Guide to learn how locking works:
https://www.plasticscm.com/download/help/locking
Examples:
cm ^partial ^checkout .
(Checkouts current directory.)
== CMD_DESCRIPTION_PARTIAL_CONFIGURE ==
Allows you to configure your workspace by loading or unloading items from it.
== CMD_USAGE_PARTIAL_CONFIGURE ==
Usage:
Options:
== CMD_HELP_PARTIAL_CONFIGURE ==
Remarks:
Examples:
cm ^partial ^configure -/
(Unloads the whole workspace.)
cm ^partial ^configure -/ +/
(Loads the whole workspace.)
== CMD_DESCRIPTION_PARTIAL_MOVE ==
Moves or renames a file or directory.
== CMD_USAGE_PARTIAL_MOVE ==
Usage:
Options:
== CMD_HELP_PARTIAL_MOVE ==
Remarks:
Format:
{0} Source path.
{1} Destination path.
Examples:
== CMD_DESCRIPTION_PARTIAL_RM ==
Deletes a file or directory from version control.
== CMD_USAGE_PARTIAL_RM ==
Usage:
Options:
--^nodisk Removes from version control, but keeps the item on disk.
== CMD_HELP_PARTIAL_RM ==
Remarks:
Items are deleted from disk. Removed items are removed from the parent
directory in the source code control.
Requirements:
- The item must be under source code control.
Examples:
== CMD_DESCRIPTION_PARTIAL_SWITCH ==
Sets a branch as the working branch.
== CMD_USAGE_PARTIAL_SWITCH ==
Usage:
Options:
--^silent Does not show any output.
--^report Prints a list of the applied changes when the command
is finished. Using '--^silent' will override this setting.
This option only works when the '--^configure' option
is not specified.
--^configure Configures (loads / unloads items) the workspace
after updating the working branch. Check 'cm ^partial
^configure --^help' to learn how to specify the paths
to configure.
--^ignorefailed Skips all errors during the configuration process.
Incorrect paths will not cause the command to stop.
--^ignorecase Ignores casing on the paths. With this flag, option
'--^configure' works for "/Data/Textures" even if the user
writes "/data/teXtures".
--^workspace=path Path where the workspace is located.
== CMD_HELP_PARTIAL_SWITCH ==
Remarks:
This command allows users to update the working branch. After updating the
branch, the command updates the workspace to the new branch as the
'cm ^partial ^update' command would do. However, if the '--^configure' option
is
specified, the command allows to configure the workspace using the new
branch configuration as the 'cm ^partial ^configure' command would do.
Examples:
cm ^switch ^br:/main/task
(Sets /main/task as working branch and updates the workspace.)
== CMD_DESCRIPTION_PARTIAL_UNCO ==
Undoes the checkout on an item.
== CMD_USAGE_PARTIAL_UNCO ==
Usage:
item_path Items to apply the operation. Use double quotes (" ")
to specify paths containing spaces. Use a whitespace to
separate paths.
Use . to apply the operation to current directory.
Options:
== CMD_HELP_PARTIAL_UNCO ==
Remarks:
If an item is checked-out and you do not want to checkin it, you can undo
the checkout using this command. Both files and folders can be unchecked
out. The item will be updated to the state it had before checking it out.
Requirements:
- The item must be under source code control.
- The item must be checked out.
Examples:
cm ^partial ^undocheckout .
(Undoes checkouts in the current directory.)
== CMD_DESCRIPTION_PARTIAL_UNDO ==
Undoes changes in a workspace.
== CMD_USAGE_PARTIAL_UNDO ==
Usage:
Options:
Filters:
== CMD_HELP_PARTIAL_UNDO ==
Remarks:
/src
|- file.txt
|- code.cs
\- /test
|- test_a.py
\- test_b.py
cm ^partial ^undo
cm ^partial ^undo *
cm ^partial ^undo file.txt code.cs /test
cm ^partial ^undo .
cm ^partial ^undo /src file.txt code.cs
If you want the operation to be recursive, you must specify the '-^r' flag.
Examples:
^rm file1.txt
^echo ^content >> file2.txt
cm ^partial ^add file3.txt
cm ^partial ^undo --^deleted --^added *
(Undoes the file1.txt delete and file3.txt add, ignoring the file2.txt
change.)
== CMD_DESCRIPTION_PARTIAL_UPDATE ==
Updates the partial workspace and downloads latest changes.
== CMD_USAGE_PARTIAL_UPDATE ==
Usage:
Options:
== CMD_HELP_PARTIAL_UPDATE ==
Remarks:
If all the specified paths are files inside the same Xlink when using the
'--^changeset' option, then the versions to download are searched in the
specified changeset of the Xlinked repository.
Examples:
cm ^partial ^update
(Updates all in the current partial workspace.)
cm ^partial ^update .
(Updates all current directory children items.)
== CMD_DESCRIPTION_PATCH ==
Generates a patch file from a spec or applies a generated patch to the current
workspace.
== CMD_USAGE_PATCH ==
Usage:
Options:
== CMD_HELP_PATCH ==
Limitations:
If the output patch file already exists, the command will not overwrite it.
When applying a patch, the command will not apply changes to modified files
if they are not present on disk.
Important:
Examples:
cm ^patch ^cs:4@default@localhost:8084
(Prints on console the differences of cset 4 in unified format.)
== CMD_DESCRIPTION_QUERY ==
Executes SQL queries. Requires SQL storage.
== CMD_USAGE_QUERY ==
Usage:
Options:
--^outputfile Writes the result in an output file.
--^solveuser Sets the specified columns as username columns. The
query interpreter will assume that data of these columns
will be users, and will try to solve them.
--^solvepath Sets the specified columns as itemid column. The query
interpreter will try to solve item id to filesystem
paths.
--^columnwidth Specifies the width of each column to format the output.
--^nocolumnname Does not print column name.
--^columnseparator Uses char as column separator instead of a tab (\t).
--^repository Repository to query.
== CMD_HELP_QUERY ==
Remarks:
This command allows users to execute SQL queries in the server database.
In order to write SQL queries, use these two pre-defined functions to manage
users and paths:
- '^SolveUser(<username>)' that resolves a username into Plastic SCM format.
- '^SolvePath(<path>)' that resolves a disk path into an item id.
Also, you can use options to show query results in a human readable form.
Examples:
cm ^query "^SELECT b.^sname ^as br_name, o.^dtimestamp ^as date ^from ^branch
b, \
^object o, ^seid s ^where b.^iobjid=o.^iobjid ^and o.^fidowner=s.^iseidid
^and \
s.^scode='^SolveUser(john)'" --^outputfile=query.txt
(Outputs into a file the branches with owner 'john'.)
== CMD_DESCRIPTION_ATTRIBUTE_DELETE ==
Deletes one or more attributes.
== CMD_USAGE_ATTRIBUTE_DELETE ==
Usage:
cm ^attribute | ^att ^delete | ^rm <att_spec>[ ...]
== CMD_HELP_ATTRIBUTE_DELETE ==
Remarks:
Examples:
== CMD_DESCRIPTION_ATTRIBUTE_UNSET ==
Unsets an object's attribute.
== CMD_USAGE_ATTRIBUTE_UNSET ==
Usage:
== CMD_HELP_ATTRIBUTE_UNSET ==
Remarks:
Examples:
== CMD_DESCRIPTION_ATTRIBUTE_RENAME ==
Renames an attribute.
== CMD_USAGE_ATTRIBUTE_RENAME ==
Usage:
== CMD_HELP_ATTRIBUTE_RENAME ==
Remarks:
Examples:
== CMD_DESCRIPTION_ATTRIBUTE_EDIT ==
Edits the comment of an attribute.
== CMD_USAGE_ATTRIBUTE_EDIT ==
Usage:
== CMD_HELP_ATTRIBUTE_EDIT ==
Remarks:
To specify a default list of values for the attribute, you just need to
include a line like the following in the attribute comment:
'default: value_one, "value two", value3, "Final value"'.
Examples:
== CMD_DESCRIPTION_REPLICATE ==
WARNING: This command is deprecated.
== CMD_USAGE_REPLICATE ==
== CMD_HELP_REPLICATE ==
== CMD_DESCRIPTION_PULL ==
Pulls a branch from another repo.
== CMD_USAGE_PULL ==
Usage:
Options:
Translate options:
--^trmode=(^copy|^name|^table --^trtable=<translation_table_file>)
The source and destination repositories may use different authentication
modes. The '--^trmode' option specifies how to translate the user names from
the source to the destination. The '--^trmode' must be one of the following
values:
^copy (Default). Means that the user identifiers will be just copied.
^name The user identifiers will be matched by name.
^table Uses a translation table specified in the option '--^trtable'
(see below).
--^trtable=<translation_table_file>
If the translation mode is 'table', a translation table is a file
containing lines in the form <oldname;newname> (one per line). When the
branch is written to the destination repository, the objects created by
a user identified by "oldname" in the source repository will be set
to the user with "newname" on the destination.
Authentication options:
Authentication data can be specified using one of the two following modes:
--^authmode=(^NameWorkingMode|^LDAPWorkingMode|^ADWorkingMode|
^UPWorkingMode)
Examples:
(^LDAPWorkingMode) --^authdata=::0:dave:fPBea2rPsQaagEW3pKNveA
(^UPWorkingMode) --^authdata=dave:fPBea2rPsQaagEW3pKNveA==
2) Authentication file where you may have a different file for each server
you connect to, containing the credentials for that server.
--^authfile=<authentication_file>
The file contains 2 lines:
Line 1) mode, as described in '--^authmode'
Line 2) authentication data, as described in '--^authdata'
== CMD_HELP_PULL ==
Remarks:
A '^pull' operation means that the replication operation will demand data
from the source repository to be stored into the destination repository.
The client will connect to the destination repository and, from that host,
it will establish a connection to the source repository to retrieve the
targeted data. During pull it is the destination server which will be
connected to the source.
Replication can resolve situations where concurrent changes have been made
on the same branch on two replicated repositories:
- Push: If you try to push your data to a repository having newer changes
than those you are sending, the system will ask you to pull the latest
changes, resolve the merge operation and, finally, try to push again.
- Pull: Whenever you pull changesets from a remote branch, they will be
correctly linked to their parent changesets. If the changeset you pulled
is not a child of the last changeset in the branch, then a multi-headed
scenario will appear. The branch will have more than one 'head', or last
changeset on the branch. You will need to merge the two 'heads' before
being able to push again.
2) Import a previously generated package with push and the '--^package' option.
Mode 2) requires using a package file previously generated with the push
command.
Keep in mind that pull replication works in an indirect way. When executed,
the command asks the destination repository to connect to the source and
obtain the selected branch.
Examples:
== CMD_DESCRIPTION_PUSH ==
Pushes a branch to another repo.
== CMD_USAGE_PUSH ==
Usage:
Options:
Translate options:
--^trmode=(^copy|^name|^table --^trtable=<translation_table_file>)
The source and destination repositories may use different authentication
modes. The '--^trmode' option specifies how to translate the user names
from the source to the destination. The '--^trmode' must be one of the
following values:
^copy (Default). Means that the user identifiers will be just copied.
^name The user identifiers will be matched by name.
^table Uses a translation table specified in the option '--^trtable'
(see below).
--^trtable=<translation_table_file>
If the translation mode is 'table', a translation table is a file
containing lines in the form <oldname;newname> (one per line). When the
branch is written to the destination repository, the objects created by
a user identified by "oldname" in the source repository will be set
to the user with "newname" on the destination.
Authentication options:
Authentication data can be specified using one of the two following modes:
--^authmode=(^NameWorkingMode|^LDAPWorkingMode|^ADWorkingMode|
^UPWorkingMode)
Examples:
(^LDAPWorkingMode) --^authdata=::0:dave:fPBea2rPsQaagEW3pKNveA
(^UPWorkingMode) --^authdata=dave:fPBea2rPsQaagEW3pKNveA==
2) Authentication file where you may have a different file for each server
you connect to, containing the credentials for that server.
--^authfile=<authentication_file>
The file contains 2 lines:
Line 1) mode, as described in '--^authmode'
Line 2) authentication data, as described in '--^authdata'
== CMD_HELP_PUSH ==
Remarks:
A '^push' operation means that the replication operation will send data
from the source repository to the destination repository. In this case,
the client will connect to the source repository, getting the data to
replicate, and then it will send it to the destination repository. While
the former (source) must have connectivity to the destination, the latter
(destination) will not connect itself to the source.
- Push: If you try to push your data to a repository having newer changes
than those you are sending, the system will ask you to pull the latest
changes, resolve the merge operation and, finally, try to push again.
- Pull: Whenever you pull changesets from a remote branch, they will be
correctly linked to their parent changesets. If the changeset you pulled
is not a child of the last changeset in the branch, then a multi-headed
scenario will appear. The branch will have more than one 'head', or last
changeset on the branch. You will need to merge the two 'heads' before
being able to push again.
2) Export package mode: The client will only connect to the source and
generate a replication package obtaining both data and metadata for the
specified branch. The '--^package' modifier will be used.
The ^push replication works in a direct way. When executed, the command
will replicate the selected branch from source to destination, instead of
asking the destination repository to connect to the source and obtain the
selected branch (as the pull does).
Examples:
== CMD_USAGE_CLONE ==
Usage:
Options:
Translate options:
--^trmode=(^copy|^name|^table --^trtable=<translation_table_file>)
The source and destination repositories may use different authentication
modes. The '--^trmode' option specifies how to translate the user names from
the source to the destination. The '--^trmode' must be one of the following
values:
^copy (Default). Means that the user identifiers will be just copied.
^name The user identifiers will be matched by name.
^table Uses a translation table specified in the option '--^trtable'
(see below).
--^trtable=<translation_table_file>
If the translation mode is 'table', a translation table is a file
containing lines in the form <oldname;newname> (one per line). When the
branch is written to the destination repository, the objects created by
a user identified by "oldname" in the source repository will be set
to the user with "newname" on the destination.
Authentication options:
Authentication data can be specified using one of the two following modes:
--^authmode=(^NameWorkingMode|^LDAPWorkingMode|^ADWorkingMode|
^UPWorkingMode)
Examples:
(^LDAPWorkingMode) --^authdata=::0:dave:fPBea2rPsQaagEW3pKNveA
(^UPWorkingMode) --^authdata=dave:fPBea2rPsQaagEW3pKNveA==
2) Authentication file where you may have a different file for each server
you connect to, containing the credentials for that server.
--^authfile=<authentication_file>
The file contains 2 lines:
Line 1) mode, as described in '--^authmode'
Line 2) authentication data, as described in '--^authdata'
== CMD_HELP_CLONE ==
Remarks:
The clone command is able to replicate branches (along with their changesets,
labels, attributes, reviews, and so on) from a source repository to a
destination repository. The repositories can be located at different servers.
The clone operation does NOT clone repository submodules, nor repositories
under a Xlink.
Examples:
cm ^clone awesomeProject@tardis@cloud
(Clones 'awesomeProject' repository from 'tardis@cloud' organization into
a local repository with the same name.)
== CMD_DESCRIPTION_REVERT ==
Reverts an item to a previous revision.
== CMD_USAGE_REVERT ==
Usage:
cm ^revert <revspec>
== CMD_HELP_REVERT ==
Remarks:
Examples:
cm ^revert dir#^cs:0
cm ^revert C:\mywks\dir\file1.txt#23456
== CMD_DESCRIPTION_REVISION_HISTORY ==
Displays the history of a file or directory.
== CMD_USAGE_REVISION_HISTORY ==
Usage:
Options:
--^long Shows additional information.
--^format Retrieves the output message in a specific format. See
Remarks for more info.
--^symlink Applies the history operation to the symlink and not to
the target.
--^xml Prints the output in XML format to the standard output.
It is possible to specify an output file.
--^encoding Used 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).
== CMD_HELP_REVISION_HISTORY ==
Remarks:
This command shows a list of revisions for a given item, and label, branch,
and comment info for each revision.
Examples:
cm ^history ^serverpath:/src/foo/bar.c#^br:/main/task001@myserver
(Retrieves the revision history from a server path in a given branch.)
== CMD_DESCRIPTION_REVISION_TREE ==
Shows the revision tree for an item.
== CMD_USAGE_REVISION_TREE ==
Usage:
--^symlink Applies the operation to the link file and not to the target.
== CMD_HELP_REVISION_TREE ==
Examples:
cm ^tree fichero1.txt
cm ^tree c:\workspace
cm ^tree link --^symlink
(Applies the operation to the link file and not to the target; available on
UNIX environments.)
== CMD_DESCRIPTION_RM ==
Allows the user to delete files and directories.
== CMD_USAGE_RM ==
Usage:
Commands:
^controlled (optional)
^private
== CMD_HELP_RM ==
Examples:
cm ^remove \path\controlled_file.txt
cm ^remove ^private \path\private_file.txt
== CMD_DESCRIPTION_RM_CONTROLLED ==
Deletes a file or directory from version control.
== CMD_USAGE_RM_CONTROLLED ==
Usage:
item_path Items path to remove. Use double quotes (" ") to specify
paths containing spaces. Use a whitespace to separate
paths.
Options:
== CMD_HELP_RM_CONTROLLED ==
Remarks:
Items are deleted from disk. Removed items are removed from the parent
directory in the source code control.
Requirements:
- The item must be under source code control.
The '^remove' command can read paths from stdin. To do this, pass a single
dash "-".
Example: cm ^remove -
Examples:
cm ^remove src
(Removes 'src'. If src is a directory, this is the same as
'cm ^remove -^R src'.)
== CMD_DESCRIPTION_RM_PRIVATE ==
Deletes a private file or directory.
Warning: files deleted using the command are permanently erased, and are not
recoverable. It is recommended that you use the '--^dry-run' option to check
which files will be affected by the command.
== CMD_USAGE_RM_PRIVATE ==
Usage:
Options:
Examples:
== CMD_DESCRIPTION_TRIGGER_DELETE ==
Deletes a trigger.
== CMD_USAGE_TRIGGER_DELETE ==
Usage:
Options:
== CMD_HELP_TRIGGER_DELETE ==
Examples:
== CMD_DESCRIPTION_ATTRIBUTE_SET ==
Sets an attribute on a given object.
== CMD_USAGE_ATTRIBUTE_SET ==
Usage:
== CMD_HELP_ATTRIBUTE_SET ==
Remarks:
Examples:
== CMD_DESCRIPTION_SETOWNER ==
Sets the owner of an object.
== CMD_USAGE_SETOWNER ==
Usage:
== CMD_HELP_SETOWNER ==
Remarks:
Examples:
== CMD_DESCRIPTION_SETSELECTOR ==
Sets the selector to a workspace.
== CMD_USAGE_SETSELECTOR ==
This command is deprecated. It is still present for backwards compatibility
but selectors were largely deprecated in Plastic SCM 4.0. Selectors still
exist to specify the working branch or changeset, but the old rules to
filter paths are no longer supported.
Usage:
cm ^setselector | ^sts [--^file=<selector_file>] [--^ignorechanges]
[--^forcedetailedprogress] [<wk_path> | <wk_spec>]
Options:
== CMD_HELP_SETSELECTOR ==
Remarks:
Sample selector:
Examples:
cm ^sts
(Opens the current selector file to be applied.)
cm ^sts ^wk:workspace_projA@reptest
(Opens the specified selector file to be applied.)
cm ^setselector --^file=c:\selectors\sel.xml
(Sets the specified selector file in the current workspace.)
cm ^setselector --^file=c:\selectors\sel.xml ^wk:MyWorkspace
(Sets the specified selector file in the selected workspace.)
== CMD_DESCRIPTION_SHELVE ==
Shelves the contents of checked-out items.
== CMD_USAGE_SHELVE ==
This command is deprecated. Use 'cm ^shelveset' instead.
Usage:
cm ^shelve --^delete=<sh_spec>
(Removes a stored shelveset.)
Options:
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.
--^mount The mount point for the given repository.
== CMD_HELP_SHELVE ==
Remarks:
If neither <item_path> nor any option is specified, the shelve will involve
all the pending changes in the workspace.
The shelve operation is always applied recursively from the given path.
Comparison methods:
^ignoreeol Ignores end of line differences.
^ignorewhitespaces Ignores whitespace differences.
^ignoreeolwhitespaces Ignores end of line and whitespace differences.
^notignore Detects end of line and whitespace differences.
Examples:
cm ^shelve --^apply=^sh:3
(Applies a stored shelveset.)
cm ^shelve --^delete=^sh:3
(Removes a stored shelveset.)
== CMD_DESCRIPTION_SHELVESET ==
Allows the user to manage shelvesets.
== CMD_USAGE_SHELVESET ==
Usage:
Commands:
^create | ^mk
^delete | ^rm
^apply
== CMD_HELP_SHELVESET ==
Examples:
== CMD_USAGE_SHELVESET_CREATE ==
Usage:
Options:
== CMD_HELP_SHELVESET_CREATE ==
The '^shelveset ^create' command stores the contents of checked out items inside
the
repository. This way the contents are protected without the need to
checkin the files.
Remarks:
Examples:
== CMD_USAGE_SHELVESET_DELETE ==
Usage:
== CMD_HELP_SHELVESET_DELETE ==
The '^shelveset ^delete' command deletes a shelveset.
Examples:
== CMD_DESCRIPTION_SHELVESET_APPLY ==
Applies a stored shelveset.
== CMD_USAGE_SHELVESET_APPLY ==
Usage:
Options:
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.
== CMD_HELP_SHELVESET_APPLY ==
The '^shelveset ^apply' command restores the contents of a stored shelveset.
Remarks:
Comparison methods:
^ignoreeol Ignores end of line differences.
^ignorewhitespaces Ignores whitespace differences.
^ignoreeolwhitespaces Ignores end of line and whitespace differences.
^notignore Detects end of line and whitespace differences.
Examples:
== CMD_USAGE_SHOW_FIND_OBJECTS ==
Usage:
cm ^showfindobjects
== CMD_HELP_SHOW_FIND_OBJECTS ==
Available objects and attributes:
^attribute:
You can find attributes by filtering using the following fields:
^type : string.
Example:
cm ^find ^attribute "^where ^type = 'status'"
(Finds all attributes of type 'status'.)
^value : string.
^date : date.
Check "date constants" for more info in this guide.
Example:
cm ^find ^attribute "^where ^date > '^this ^week'"
(Finds all attributes applied during the current week.)
^owner : user.
Admits special user '^me'.
Example:
cm ^find ^attribute "^where ^value = 'resolved' ^and ^owner =
'^me'"
(Finds all attributes with value 'resolved' applied by me.)
Examples:
cm ^find ^attribute "^where ^srcobj = '^item:readme.txt'"
(Finds the attributes applied to the item 'readme.txt'.)
^ID : integer.
^attributetype:
You can find attribute types by filtering using the following fields:
^name : string.
Example:
cm ^find ^attributetype "^where ^name ^like 'st%'"
(Finds all attribute where name starts with 'st'.)
^value : string.
^date : date.
Check "date constants" for more info in this guide.
Example:
cm ^find ^attribute "^where ^date > '^today'"
(Finds all attributes applied today.)
^owner : user.
Admits special user '^me'.
^GUID : Global Unique Identifier.
Hexadecimal id in the format xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.
^comment : string.
Example:
cm ^find ^attributetype "^where ^comment != ''" --^xml
(Finds all attribute types that have a comment and prints the
output in XML format to the standard output.)
Example:
^ID : integer.
^branch:
You can find branches by filtering using the following fields:
^name : string.
Example:
cm ^find ^branch "^where ^name ^like 'scm23%'"
(Finds branches which name starts with 'scm23'.)
^date : date.
Check "date constants" for more info in this guide.
Example:
cm ^find ^branch "^where ^date > '^one ^week ^ago'"
(Finds branches created during the last week.)
Example:
cm ^find ^branch "^where ^changesets >= '^today'"
(Finds branches with changesets created today.)
^attribute : string.
^attrvalue : string.
Example:
cm ^find ^branch "^where ^attribute = 'status' ^and ^attrvalue
= 'failed'"
(Finds branches that have the attribute 'status' and which
value is 'failed'.)
^owner : user.
Admits special user '^me'.
^parent : branch spec.
Use 'cm ^help ^objectspec' to learn how to specify this object.
Example:
cm ^find ^branch "^where ^owner != '^me' ^and ^parent !=
'^br:/main'"
(Finds branches created by other than me and which parent
branch is not '/main'.)
^comment : string.
^GUID : Global Unique Identifier.
Hexadecimal id in the format xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.
^ID : integer.
Example:
cm ^find ^branch "^where ^id = 2029607"
(Finds the branch which id is 2029607.)
^changeset:
You can find changesets by filtering using the following fields:
Example:
cm ^find ^changeset "^where ^branch = '/main/scm23119'"
(Finds all changesets in branch 'scm23119'.)
^changesetid : integer.
^attribute : string.
Example:
cm ^find ^changeset "^where ^attribute = 'status'"
(Finds the changesets with the attribute 'status'.)
^attrvalue : string.
^date : date.
Check "date constants" for more info in this guide.
^owner : user.
Admits special user '^me'.
Example:
cm ^find ^changeset "^where ^date >= '6/8/2018' ^and
^owner != '^me'"
(Finds all changesets with creation date equal or
greater than 6/8/2018 and created by others than me.)
Example:
cm ^find ^changeset "^where ^guid = '1b30674f-14cc-
4fd7-962b-676c8a6f5cb6'"
(Finds the changeset with the specified guid.)
^comment : string.
Example:
cm ^find ^changeset "^where ^comment = ''"
(Finds the changesets with no comments.)
^onlywithrevisions : boolean.
To filter whether a cset has revisions or not.
Example:
cm ^find ^changeset "^where ^onlywithrevisions =
'false'"
(Finds changesets with no revisions.)
^returnparent : boolean.
A way to return the parent of a cset. Good for scripting.
Example:
cm ^find ^changeset "^where ^changesetid = 29 ^and
^returnparent = 'true'"
(Finds the parent of changeset 29.)
Example:
cm ^find ^changeset "^where ^parent = 548"
(Finds all changesets which parent is cset 548.)
^ID : integer.
^label:
You can find labels by filtering using the following fields:
^name : string.
Example:
cm ^find ^label "^where ^name ^like '7.0.16.%'"
(Finds the labels with a name that starts with '7.0.16.'.)
^attribute : string.
^attrvalue : string.
^date : date.
Check "date constants" for more info in this guide.
Example:
cm ^find ^label "^where ^date >= '^this ^month' ^and \
^attribute = 'publish-status' ^and ^attrvalue != 'PUBLISHED'"
(Finds the labels created this month with an attribute
'publish-status'
set to a value other than 'PUBLISHED'.)
^owner : user.
Admits special user '^me'.
^GUID : Global Unique Identifier.
Hexadecimal id in the format xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.
^branch : branch spec.
Use 'cm ^help ^objectspec' to learn how to specify this object.
Example:
cm ^find ^label "^where ^branch = '/main'"
(Finds all labels applied to the main branch.)
^branchid : integer.
^changeset : changeset id (integer).
Example:
cm ^find ^label "^where ^changeset = 111733"
(Finds the labels applied to changeset 111733.)
^comment : string.
^ID : integer.
^merge:
You can find merges by filtering using the following fields:
Example:
cm ^find ^merge "^where ^srcbranch = '^br:/main'"
(Finds merges from the main branch.)
Example:
cm ^find ^merge "^where ^dstchangeset = 108261" \
--^format="{^srcbranch} {^srcchangeset} {^dstbranch}
{^dstchangeset} {^owner}"
(Finds the merges to changeset 108261 and prints the
formatted output showing the source (branch and cset id),
the destination (branch and cset id), and the merge owner.)
^date : date.
Check "date constants" for more info in this guide.
^owner : user.
Admits special user '^me'.
^GUID : Global Unique Identifier.
Hexadecimal id in the format xxxxxxxx-xxxx-xxxx-xxxx-
xxxxxxxxxxxx.
^type : string.
Possible values are '^merge', '^cherrypick',
'^cherrypicksubstractive', '^interval', '^intervalcherrypick'
and '^intervalcherrypicksubstractive'
Example:
cm ^find ^merge "^where ^type = '^cherrypick' ^and ^owner =
'^me'"
(Finds all my cherrypicks.)
^ID : integer.
^replicationlog:
You can find replication log by filtering using the following fields:
Example:
cm ^find ^replicationlog "^where ^branch =
'/main/gm22358'"
(Finds the replication logs of branch 'gm22358'.)
^repositoryname : string.
^owner : user.
Admits special user '^me'.
^date : date.
Check "date constants" for more info in this guide.
^server : string.
^package : boolean.
Example:
cm ^find ^replicationlog "^where ^package = 'T' ^and
^server ^like '%cloud%'"
(Finds the replication logs created from package which
server name contains 'cloud'.)
^ID : integer.
^review:
You can find code reviews by filtering using the following fields:
^status : string.
^assignee : string.
Example:
cm ^find ^review "^where ^status = 'pending' ^and ^assignee =
'^me'"
(Finds all my pending reviews.)
^title : string.
^target : object spec: branch or changeset.
Use 'cm ^help ^objectspec' to learn how to specify this object.
Example:
cm ^find ^review "^where ^target = '^br:/main/scm17932'"
(Finds the reviews related to branch 'scm17932'.)
^targetid : integer.
^targettype : string.
Possible values are '^branch' and '^changeset'.
Example:
cm ^find ^review "^where ^targettype = '^changeset'"
(Finds the reviews which target type is changeset.)
^date : date.
Check "date constants" for more info in this guide.
^owner : user.
Admits special user '^me'.
^GUID : Global Unique Identifier.
Hexadecimal id in the format xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.
^ID : integer.
^revision:
You can find revisions by filtering using the following fields:
Example:
cm ^find ^revision "^where ^changeset >= 111756"
(Finds the revisions created in changeset 111756
and later.)
Examples:
cm ^find ^revision "^where ^item = 'readme.txt' ^or
^itemid = 2250"
(Finds the revisions of item 'readme.txt' plus
item id 2250.)
^attribute : string.
^attrvalue : string.
Example:
cm ^find ^revision "^where ^attribute = 'status' ^and
^attrvalue != 'open'"
(Finds the revisions with attribute 'status' which
value is other than 'open'.)
^archived : boolean.
Example:
cm ^find ^revision "^where ^archived = 'true'"
(Finds the revisions that are archived in an
external storage.)
^comment : string.
^date : date.
Check "date constants" for more info in this guide.
^GUID : Global Unique Identifier.
Hexadecimal id in the format xxxxxxxx-xxxx-xxxx-xxxx-
xxxxxxxxxxxx.
^owner : user.
Admits special user '^me'.
^parent : revision id (integer).
^returnparent : boolean.
^shelve : shelve id (integer).
^size : integer (in bytes).
^type : string.
Possible values are '^dir', '^bin', and '^txt'.
Example:
cm ^find ^revision "^where ^type = '^txt' and \
^size > 300000 ^and ^owner = '^me' and ^date >= '2
^months ^ago'"
(Finds the text revisions created by me two months
ago and with size greater than about 3MB.)
^workspacecheckoutid : integer.
^ID : integer.
^owner : user.
Admits special user '^me'.
^date : date.
Check "date constants" for more info in this guide.
Example:
cm ^find ^shelve "^where ^owner != '^me' ^and ^date >= '^1
^years ^ago'"
(Finds the shelves created by others than me during the last
year.)
^attribute : string.
^attrvalue : string.
^comment : string.
^GUID : Global Unique Identifier.
Hexadecimal id in the format xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.
^parent : integer.
^shelveid : integer.
Example:
cm ^find ^shelve "^where ^shelveid = 2"
(Finds the shelve with name 2.)
^ID : integer.
Example:
cm ^find ^shelve "^where ^id >= 3848"
(Finds the shelves which object id is greater than 3848.)
Example:
cm ^find ^branch "^where
^replsrcserver='skull.codicefactory.com:9095'"
(Finds the branches replicated from server 'skull'.)
Example:
cm ^find ^branch "^where ^replsrcserver =
'skull.codicefactory.com:9095' \
^and ^replsrcrepository = 'codice'"
(Finds the branches replicated from server 'skull'
and from repository 'codice'.)
Example:
cm ^find ^revision "^where ^repllogid = 2019974"
(Finds the revisions replicated from replica
2019974.)
Example:
cm ^find ^label "^where ^replsrcdate >= '^one ^month
^ago' \
^and ^date >= '15 ^days ^ago'"
(Finds the labels created 15 days ago and were
replicated one month ago.)
Example:
cm ^find ^replicationsource
7860739 codice@AFRODITA:8087 d9c4372a-dc55-4fdc-ad3d-
baeb2e975f27
8175854 codice@BACKYARD:8087 66700d3a-036b-4b9a-a26f-
adfc336b14f9
You can also use the following constants to simplify your queries:
'^today' : today's date.
'^yesterday' : yesterday's date.
'^this ^week' : current week's Monday date.
'^this ^month' : current month's 1st day date.
'^this ^year' : current year's January 1st date.
'^one ^day ^ago' : one day before the current date.
'^one ^week ^ago' : seven days before the current date.
'^one ^month ^ago' : one month before the current date.
'n ^days ^ago' : 'n' days before the current date.
'n ^months ^ago' : 'n' months before the current date.
'n ^years ^ago' : 'n' years before the current date.
The following '^where' clauses are valid for fields of type '^date':
'(...) ^where ^date > '^today' (...)'
'(...) ^where ^date < '^yesterday' (...)'
'(...) ^where ^date > '^this ^week' (...)'
'(...) ^where ^date > '^this ^month' (...)'
'(...) ^where ^date < '^one ^day ^ago' ^and ^date > '3 ^days ^ago' (...)'
'(...) ^where ^date < '^one ^week ^ago' ^and ^date > '3 ^weeks ^ago' (...)'
'(...) ^where ^date < '^one ^month ^ago' ^and ^date > '3 ^months ^ago'
(...)'
'(...) ^where ^date > '1 ^year ^ago' (...)'
You can also force a specific date format on the 'cm ^find' command using the
--^dateformat flag. Check 'cm ^find --^help' for further details.
== CMD_DESCRIPTION_TRIGGER_SHOWTYPES ==
Displays available trigger types.
== CMD_USAGE_TRIGGER_SHOWTYPES ==
Usage:
cm ^trigger ^showtypes
== CMD_DESCRIPTION_SHOWACL ==
Shows the ACL of an object.
== CMD_USAGE_SHOWACL ==
Usage:
Options:
--^extended Shows ACL hierarchy tree.
--^xml Prints the output in XML format to the standard output.
It is possible to specify an output file.
--^encoding Used 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).
== CMD_HELP_SHOWACL ==
Examples:
cm ^showacl ^repserver:PlasticServer:8084
(Shows the ACL of the selected server.)
== CMD_DESCRIPTION_SHOWCOMMANDS ==
Shows all the available commands.
== CMD_USAGE_SHOWCOMMANDS ==
Usage:
cm ^showcommands
== CMD_HELP_SHOWCOMMANDS ==
== CMD_DESCRIPTION_SHOWOWNER ==
Shows the owner of an object.
== CMD_USAGE_SHOWOWNER ==
Usage:
== CMD_HELP_SHOWOWNER ==
Remarks:
This command displays the owner of an object. The owner can be a user or
a group. The owner can be modified with 'cm ^setowner' command.
Examples:
cm ^showowner ^repserver:PlasticServer:8084
(Shows the owner of the selected server.)
cm ^so ^item:samples\
(Shows the owner of the selected item specification.)
== CMD_DESCRIPTION_SHOWPERMISSIONS ==
Lists the available permissions.
== CMD_USAGE_SHOWPERMISSIONS ==
Usage:
cm ^showpermissions | ^sp
== CMD_HELP_SHOWPERMISSIONS ==
Examples:
cm ^showpermissions
== CMD_DESCRIPTION_SHOWSELECTOR ==
Shows the workspace selector.
== CMD_USAGE_SHOWSELECTOR ==
This command is deprecated. It is still present for backwards compatibility
but selectors were largely deprecated in Plastic SCM 4.0. Selectors still
exist to specify the working branch or changeset, but the old rules to
filter paths are no longer supported.
Usage:
== CMD_HELP_SHOWSELECTOR ==
Remarks:
If neither path nor workspace spec is specified, the command will take the
current directory as the workspace path.
Examples:
cm ^showselector c:\workspace
(Shows the selector for the selected workspace path.)
cm ^ss
(Shows the selector for current workspace.)
cm ^showselector ^wk:mywk@reptest
(Shows the selector for the workspace 'mywk' in the repository 'reptest'.)
== CMD_DESCRIPTION_SUPPORT ==
Allows the user to perform support related operations.
== CMD_USAGE_SUPPORT ==
Usage:
Commands:
^bundle
== CMD_HELP_SUPPORT ==
Examples:
cm ^support
cm ^support ^bundle
cm ^support ^bundle c:\outputfile.zip
== CMD_DESCRIPTION_SUPPORT_BUNDLE ==
Creates a "support bundle" package with relevant logs.
You can attach the file while requesting help, asking for extra info, or
submitting a bug.
== CMD_USAGE_SUPPORT_BUNDLE ==
Usage:
Options:
== CMD_HELP_SUPPORT_BUNDLE ==
Remarks:
This command allows users to create a "support bundle" package which can be
attached when requesting help, asking for extra info, or submitting a bug.
The user can optionally specify a location for the output file; otherwise, the
output file will be written to the temp directory.
Examples:
cm ^support ^bundle
(Creates "support bundle" in temp directory.)
== CMD_DESCRIPTION_SWITCH ==
Switches the workspace to a branch, changeset, label, or shelveset.
== CMD_USAGE_SWITCH ==
Usage:
(Use 'cm ^help ^objectspec' to learn more about branch, changeset, label,
and shelveset specifications.)
Options:
--^workspace Path where the workspace is located.
--^repository Switches to the specified repository.
--^forcedetailedprogress Forces detailed progress even when standard
output is redirected.
== CMD_HELP_SWITCH ==
Remarks:
This command allows users to update the workspace tree to the contents
of the specified object (branch, label, shelveset, or changeset).
Examples:
cm ^switch ^br:/main
cm ^switch ^lb:Rel1.1
cm ^switch ^br:/main/scm002 --^repository=rep2
cm ^switch ^cs:4375
cm ^switch ^sh:2
== CMD_DESCRIPTION_SWITCH_TO_BRANCH ==
Sets a branch as the working branch.
== CMD_USAGE_SWITCH_TO_BRANCH ==
This command is deprecated. Use cm switch instead.
Usage:
Options:
== CMD_HELP_SWITCH_TO_BRANCH ==
Remarks:
Examples:
cm ^switchtobranch ^br:/main
cm ^switchtobranch ^br:/main/task001
cm ^switchtobranch --^label=BL050
(Read-only configuration. The command loads the contents of the labeled
changeset.)
== CMD_DESCRIPTION_SYNC ==
Synchronize with Git.
== CMD_USAGE_SYNC ==
Usage:
Options:
== CMD_HELP_SYNC ==
Remarks:
If the git repository requires user and password, then use '^url', '--^user',
and '--^pwd' options.
If the git repository doesn't require user and password, then use '^url'
option with the first sync operation. With next sync operations, '^url'
option is optional.
To use the SSH protocol to perform the sync, you must have the 'ssh' client
added to the PATH environment variable and properly configured to connect
to the remote host (i.e. private/public keys configured).
Examples:
== CMD_DESCRIPTION_TRIGGER ==
Allows the user to manage triggers.
== CMD_USAGE_TRIGGER ==
Usage:
Commands:
^create | ^mk
^delete | ^rm
^edit
^list | ^ls
^showtypes
== CMD_HELP_TRIGGER ==
Examples:
== CMD_DESCRIPTION_TUBE ==
Runs commands related to Plastic Tube.
== CMD_USAGE_TUBE ==
Usage:
cm ^tube ^local
(Lists the local repositories shared in the local server and the users
that it is shared with.)
cm ^tube ^remote
(Lists the shared remote repositories that are shared with the current
tube user.)
cm ^tube ^connect
(Connects the Plastic SCM server to Plastic Tube.)
cm ^tube ^disconnect
(Disconnects the Plastic SCM server from Plastic Tube.)
cm ^tube ^status
(Shows if the Plastic SCM server is connected to Plastic Tube.)
Options
== CMD_HELP_TUBE ==
Remarks:
Examples:
cm ^tube ^local
cm ^tube ^remote
cm ^tube ^connect
cm ^tube ^disconnect
cm ^tube ^status
== CMD_DESCRIPTION_UNCO ==
Undoes the checkout of an item.
== CMD_USAGE_UNCO ==
Usage:
Options:
== CMD_HELP_UNCO ==
Remarks:
If an item is checked out and you do not want to checkin it, you can undo
the checkout using this command. Both files and folders can be unchecked
out. The item will be updated to the state it had before checking it out.
Requirements:
- The item must be under source code control.
- The item must be checked out.
The '^undocheckout' command can read paths from stdin. To do this, pass a
single dash "-".
Example: cm ^undocheckout ^checkin -
Examples:
cm ^undocheckout .
(Undoes checkouts in the current directory.)
cm ^unco . --^machinereadable
(Undoes checkouts in the current directory, and prints the result in a
simplified, easier-to-parse format.)
== CMD_DESCRIPTION_UNCOUNCHANGED ==
Undoes non-changed checked out items.
== CMD_USAGE_UNCOUNCHANGED ==
Usage:
Options:
== CMD_HELP_UNCOUNCHANGED ==
Remarks:
The '^uncounchanged' command can read paths from stdin. To do this, pass a
single dash "-".
Example: cm ^uncounchanged -
Examples:
cm ^uncounchanged . -^R
(Undoes checkouts of not changed files recursively on the current directory.)
== CMD_DESCRIPTION_UNDELETE ==
Undeletes an item using a specific revision.
== CMD_USAGE_UNDELETE ==
Usage:
== CMD_HELP_UNDELETE ==
Remarks:
Example:
== CMD_DESCRIPTION_UNDOCHANGE ==
Undoes the changes on a path.
== CMD_USAGE_UNDOCHANGE ==
Usage:
Options:
== CMD_HELP_UNDOCHANGE ==
Remarks:
If an item is checked out or modified but not checked in and you do not
want to check it in, you can undo the changes using this command. The item
will be updated to the contents it had before.
The '^undochange' command can read paths from stdin. To do this, pass a
single dash "-".
Example: cm ^undochange -
Examples:
cm ^unc .
(Undoes changes of the files on the current directory.)
cm ^undochange . -^R
(Undoes changes of the files recursively on the current directory.)
cm ^unc c:\workspace\file.txt
(Undoes changes of the selected file.)
== CMD_DESCRIPTION_UNDO ==
Undoes changes in a workspace.
== CMD_USAGE_UNDO ==
Usage:
Options:
== CMD_HELP_UNDO ==
Remarks:
/src
|- file.txt
|- code.cs
\- /test
|- test_a.py
\- test_b.py
cm ^undo
cm ^undo *
cm ^undo file.txt code.cs /test
cm ^undo .
cm ^undo /src file.txt code.cs
If you want the operation to be recursive, you must specify the '-^r' flag.
Deleted items:
To undo file and directory deletions, you must either specify the full path
of the item, or specify the containing directory and use the recursive ('-^r')
flag.
For example:
cm ^undo .
(Does NOT undo deletions in the current directory.)
cm ^undo . -^r
(Undoes all deletions (and other changes) in the current directory
recursively.)
cm ^undo src/file.txt
(Undoes deletion (or other change) of src/file.txt.)
Examples:
cm ^undo . -^r
(Undoes all changes in the current directory recursively. If executed
from the workspace's root, undoes all changes in the entire workspace.)
cm ^co file.txt
cm ^undo file.txt
(Undoes the checkout on 'file.txt'.)
cm ^undo src
(Undoes changes to the src directory and its files.)
cm ^undo src/*
(Undoes changes in every file and directory contained in src, without
affecting src.)
cm ^undo *.cs
(Undoes changes to every file or directory that matches *.cs in the current
directory.)
cm ^add file.txt
cm ^undo file.txt
(Undo the add of 'file.txt' making it once again a private file.)
^rm file1.txt
^echo ^content >> file2.txt
cm ^add file3.txt
cm ^undo --^deleted --^added *
(Undoes the 'file1.txt' delete and 'file3.txt' add, ignoring the 'file2.txt'
change.)
== CMD_DESCRIPTION_LOCK_UNLOCK ==
Undoes item locks on a lockserver.
== CMD_USAGE_LOCK_UNLOCK ==
Usage:
cm ^lock ^unlock [<repserverspec>] <guid>[ ...]
== CMD_HELP_LOCK_UNLOCK ==
Remarks:
{00000000-0000-0000-0000-000000000000}
or 00000000-0000-0000-0000-000000000000
Examples:
== CMD_DESCRIPTION_UPDATE ==
Updates the workspace and downloads latest changes.
== CMD_USAGE_UPDATE ==
Usage:
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).
--^machinereadable Outputs the result in an easy-to-parse format.
--^startlineseparator Used with the '--^machinereadable' flag,
specifies how the lines should start.
--^endlineseparator Used with the '--^machinereadable' flag,
specifies how the lines should end.
--^fieldseparator Used with the '--^machinereadable' flag,
specifies how the fields should be separated.
--^forcedetailedprogress Forces detailed progress even when standard output
is redirected.
== CMD_HELP_UPDATE ==
Remarks:
Examples:
cm ^update
(Updates all in the current workspace.)
cm ^update .
(Updates current directory, and all children items.)
cm ^update --^last
== CMD_DESCRIPTION_VERSION ==
Shows the current client version number.
== CMD_USAGE_VERSION ==
Usage:
cm ^version
== CMD_HELP_VERSION ==
== CMD_DESCRIPTION_WHOAMI ==
Shows the current Plastic SCM user.
== CMD_USAGE_WHOAMI ==
Usage:
cm ^whoami
== CMD_HELP_WHOAMI ==
== CMD_USAGE_WKTREENODESTATUS ==
Usage:
== CMD_DESCRIPTION_WORKSPACE ==
Allows the user to manage workspaces.
== CMD_USAGE_WORKSPACE ==
Usage:
Commands:
^list | ^ls
^create | ^mk
^delete | ^rm
^move | ^mv
^rename
== CMD_HELP_WORKSPACE ==
Examples:
== CMD_DESCRIPTION_WORKSPACE_CREATE ==
Creates a new workspace.
== CMD_USAGE_WORKSPACE_CREATE ==
Usage:
Options:
== CMD_HELP_WORKSPACE_CREATE ==
Remarks:
Examples:
== CMD_DESCRIPTION_WORKSPACE_DELETE ==
Deletes a workspace.
== CMD_USAGE_WORKSPACE_DELETE ==
Usage:
Options:
== CMD_HELP_WORKSPACE_DELETE ==
Remarks:
Examples:
cm ^workspace ^delete
(Removes current workspace.)
== CMD_DESCRIPTION_WORKSPACE_LIST ==
Lists workspaces.
== CMD_USAGE_WORKSPACE_LIST ==
Usage:
cm ^workspace | ^wk [^list | ^ls] [--^format=<str_format>]
Options:
== CMD_HELP_WORKSPACE_LIST ==
Remarks:
Examples:
cm ^wk
(Lists all workspaces.)
== CMD_DESCRIPTION_WORKSPACE_MOVE ==
Moves a workspace.
== CMD_USAGE_WORKSPACE_MOVE ==
Usage:
Options:
== CMD_HELP_WORKSPACE_MOVE ==
Remarks:
Examples:
== CMD_DESCRIPTION_WORKSPACE_RENAME ==
Renames a workspace.
== CMD_USAGE_WORKSPACE_RENAME ==
Usage:
== CMD_HELP_WORKSPACE_RENAME ==
Remarks:
Examples:
== CMD_DESCRIPTION_WORKSPACESTATUS ==
Shows changes in the workspace.
== CMD_USAGE_WORKSPACESTATUS ==
Usage:
Options:
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).
--^wrp Print workspace root relative paths instead of
current directory relative paths.
--^fullpaths, --^fp Force printing absolute paths, overriding any other
path printing setting.
--^machinereadable Outputs the result in an easy-to-parse format.
--^startlineseparator Used with the '--^machinereadable' flag,
specifies how the lines should start.
--^endlineseparator Used with the '--^machinereadable' flag,
specifies how the lines should end.
--^fieldseparator Used with the '--^machinereadable' flag,
specifies how the fields should be separated.
Legacy options:
Search types:
== CMD_HELP_WORKSPACESTATUS ==
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.
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 --^ignored
(Shows all ignored items.)
Output:
/main@myrepo@local (^cs:2 - ^head)
^Added
Status Size Last Modified Path
== CMD_DESCRIPTION_XLINK ==
Creates, edits, or displays details of an Xlink.
== CMD_USAGE_XLINK ==
Usage:
Options:
== CMD_HELP_XLINK ==
Remarks:
Branch auto-expansion:
1) A check is made to see if a branch with the same full name exists
in the target repository:
- If it exists, this is used as the checkout branch.
- If it does not exist, the branch name is built this way:
- Name of the branch of the target Xlinked changeset + short name of
the checkout branch (last part).
- If this branch exists, it is used as the checkout branch.
- Otherwise, the branch is created and the branch base is set to the
Xlinked changeset.
Finally, the complete Xlink structure is kept up to date with the latest
changes in the right versions.
Examples:
== CMD_USAGE_AUTOCOMPLETE ==
Usage:
cm ^autocomplete ^install
(Installs 'cm' command completion in the shell.)
cm ^autocomplete ^uninstall
(Uninstalls 'cm' command completion from the shell.)
shell_line The line the user has written into the shell when the
autocompletion was requested.
In Bash, it is at the COMP_LINE environment variable.
In PowerShell, it is at the $wordToComplete variable.
cursor_position The position of the cursor when the autocompletion was
requested.
In Bash, it is at the COMP_POINT environment variable.
In PowerShell, it is at the $cursorPosition variable.