Skip to main content
1-Visitor
March 19, 2014
Solved

get a checkpoint with head revision as of this checkpoint

  • March 19, 2014
  • 2 replies
  • 8464 views

Hello

Given a checkpoint, do you know a way - by command line - to get/download the project as of the checkpoint time and in the head revisions configuration (instead of member revision).

To get the the checkpoint and its member revisions as of you can create a build sandbox.

To get the sandbox head revision state, you can checkout the sandbox without lock.

I am not sure the check-out of a build sandbox would do what I want.

Many thanks

Thierry

    Best answer by tdalon
    • Get Checkpoint timestamp
      • using e.g. si viewprojecthistory --sandbox=$MKS.sb --fields=revision,labels,date,description
    • Create build sandbox
      • using e.g. si createsandbox --forceConfirm=yes -P$MKS.pj --projectRevision=$rev --gui --noopenView
    • Checkout with revision at time=checkpoint timestamp
      • using e.g. si co --sandbox="sandboxpath" -R --nolock --revision="time:01.01.2014 13:00"

    2 replies

    16-Pearl
    March 20, 2014

    Hi Thierry,

    i asume you want to have the project configuration (what members and Subproject are defined) as of the checkpoint in a sandbox, but the member should be in their latest revisions (a kind of "Rebase" Use Case). Correct?

    I'd try this:

    1. create a build sandbox box based on the checkpoint of interest.

    2. Than use "si co -nolock --revision=:head --recurse".

    3. Save this new Setup via "si snapshot"

    4. create a new Development path from the checkpoint generated by the Snapshot

    5. retarget you sandbox to the new Dev Path

    HTH Matthias

    tdalon1-VisitorAuthor
    1-Visitor
    March 20, 2014

    Hi Matthias

    To be maybe more precise I want the member to be in their latest revision at the time of the checkpoint.

    The problem with step 2 is that it takes the head revision of the current project and not at the time of the checkpoint. Means if I check-in another revision after the checkpoint it will be captured by the check-out and not the head revision at the time of the checkpoint.

    Am I clear?

    I don't want to make a snapshot afterwards. Just want to get the head revision of a checkpoint. For example for review of the head configuration at a marked time.

    Many thanks

    Kind Regards

    Thierry

    1-Visitor
    March 21, 2014

    Hi Thierry,

    try to create a normal sandbox. Then check out the complete sandbox without lock and in the properties tab of the check out wizard choose "Last revision at Date" and choose the timestamp of your checkpoint.

    If you want to automate this, you can script a custom button which first get the checkpoint timestamp from projecthistory.

    tdalon1-VisitorAuthorAnswer
    1-Visitor
    April 17, 2014
    • Get Checkpoint timestamp
      • using e.g. si viewprojecthistory --sandbox=$MKS.sb --fields=revision,labels,date,description
    • Create build sandbox
      • using e.g. si createsandbox --forceConfirm=yes -P$MKS.pj --projectRevision=$rev --gui --noopenView
    • Checkout with revision at time=checkpoint timestamp
      • using e.g. si co --sandbox="sandboxpath" -R --nolock --revision="time:01.01.2014 13:00"