duplicate changeset example

duplicate changeset example.

Examples

Working in a sandbox, scm show status output indicates undelivered change sets.

lscm show status
Workspace: (2560) “Duplicate Test Workspace” <-> (2561) “Duplicate Test Stream"
  Component: (2562) “Component1”
    Baseline: *(2563) 1 "Initial Baseline"
    Outgoing:
      Change sets:
        (2564) ----$  14-Jan-2019 10:03 AM "cs2"
        (2565) ----$  14-Jan-2019 10:02 AM "cs1"

To duplicate a change set with the default options, run scm duplicate changeset.

lscm duplicate changeset 2564
Duplicate change set:
         (2583) ----@ Test User (Admin) 19-Apr-2019 03:04 PM "<No comment>"
         The change set was duplicated successfully.

If you run scm show status again, you can see that the duplicated change set (2564) is suspended and replaced by the new change set (2583).

lscm show status
Workspace: (2560) “Duplicate Test Workspace” <-> (2561) “Duplicate Test Stream"
  Component: (2562) “Component1”
    Baseline: *(2563) 1 "Initial Baseline"
    Outgoing:
      Change sets:
        (2583) ----@  19-Apr-2019 03:04 PM "<No comment>"
        (2565) ----$  14-Jan-2019 10:02 AM "cs1"
    Suspended:
      Change sets:
        (2564) ----$  14-Jan-2019 10:03 AM "cs2"

To supply a comment, discard the old change set, and show verbose output when you duplicate a change set, run the following command.

lscm duplicate changeset 2564 --discard --comment "Duplicate change set" --verbose
Duplicate change set:
  (2584) ----@ Test User (Admin) 19-Apr-2019 03:08 PM "Duplicate change set"
    Changes:
      ---c- /Duplicate/src/foo.c
Following change sets successfully discarded:
  (2564) ----$ Test User (Admin) 14-Jan-2019 10:03 AM "cs2 (CLI)"
    Changes:
      ---c- /Duplicate/src/foo.c
The change set was duplicated successfully.


video icon Video

Jazz.net channel
Software Education channel

learn icon Courses

IoT Academy
Skills Gateway

ask icon Community

Jazz.net
Jazz.net forums
Jazz.net library

support icon Support

IBM Support Community
Deployment wiki