It's all about the answers!

Ask a question

Is there a scm scli to update Details of Snapshots/Workspaces ?

Muralidharan Kuppuswamy (111) | asked Apr 19 '13, 4:02 a.m.
edited Apr 19 '13, 5:53 a.m.


   Is there any scm cli command to update details like Name , Description for Snapshots/Workspaces etc

   We are looking to update a snapshot name using script based on build result but we could nto find the appropriate options in scm cli



4 answers

permanent link
Steven Holtsberg (29665) | answered Aug 13 '13, 7:05 p.m.
Hi Murali,

The scm snapshot propertyset command was added for release 4.0.1.  Here is a link to the relevant section of the "New & Noteworthy" page for 4.0.1.

permanent link
Steven Holtsberg (29665) | answered Apr 22 '13, 6:50 p.m.
The command "scm snapshot propertyset" allows you to modify the name or description of a snapshot. There is a similar "scm workspace propertyset" command.

snapshot propertyset

Set the snapshot property.



Usage: scm snapshot propertyset [options] <property-name><property-value><snapshot>

property-name The property whose value to set. Valid properties are name and description(desc).
property-value The property value to set.
snapshot The snapshot to set the property. To specify the snapshot, use its name[@repo], alias, or UUID[@repo].


--certificate arg The file that contains the user's login certificate.
--smartCard Uses the connected smart card for authentication.
-P [--password] arg The password for the repository.
-r [--repository-uri] arg The URI that specifies the location of the repository.
-u [--username] arg The username for the repository.
-w [--workspace] arg The workspace or stream associated with the snapshot. To specify the workspace or stream, use its name, alias, or UUID.

permanent link
Muralidharan Kuppuswamy (111) | answered Apr 23 '13, 1:15 a.m.

Hi Steven,

         Thanks a lot for your response. In our environment scm snapshot propertyset option is not available. Is there any specific release after which is it made available


# scm help snapshot propertyset
Problem running 'help':
Could not find subcommand "propertyset". Try 'scm help help' for more information.
 # scm snapshot propertyset
Unknown subcommand:
Unknown subcommand "propertyset". Try 'scm help snapshot' for more information.

Our Release:

scm version --version, version 3.0.3.v20120308_1209
  Subcommands: load login logout create create/workspace create/baseline create/changeset create/snapshot create/component changeset changeset/comment changeset/complete changeset/current changeset/relocate changeset/associate changeset/disassociate changeset/suspend changeset/resume changeset/discard changeset/extract change-target change-target/workspace change-target/component change-target/unset-workspace list list/workspaces list/projectareas list/teamareas list/streams list/components list/remotefiles list/credentials list/daemons list/snapshots list/locks list/properties list/changesets list/users list/baselines checkin accept deliver status conflicts resolve move lastmod share discard undo compare history diff repair workspace workspace/add-components workspace/remove-components workspace/replace-components workspace/delete workspace/unload property property/list property/get property/set property/remove lock lock/list lock/acquire lock/release annotate snapshot snapshot/promote refresh users users/set, version 3.0.2.v20110831_0247
  Subcommands: tools.verify tools.validate tools.echo.stdin tools.metronome tools.configvalue tools.log, version 3.0.3.v20120308_1209
  Subcommands: help version daemon daemon/start daemon/stop daemon/deregister daemon/register



Shashikant Padur commented Aug 14 '13, 7:49 a.m.

As mentioned by Steven in his first comment, this is only available from version 4.0.1 onwards.

permanent link
Muralidharan Kuppuswamy (111) | answered Aug 14 '13, 8:34 a.m.

Thanks Steven and Shashi. I could find it in the version 4.0.1. Thanks for your time



Your answer

Register or to post your answer.