VCP-Dest-revml.stml #12

  • //
  • guest/
  • perforce_software/
  • revml/
  • ui_machines/
  • VCP-Dest-revml.stml
  • View
  • Commits
  • Open Download .zip Download (2 KB)
<!DOCTYPE author [
  <!ENTITY non_empty_re "qr/./" >
]>

<machine id="VCP::Dest::revml" xmlns="http://slaysys.com/StateML/1.0">

  <!-- ================ TRANSITIONS =================== -->


  <state id="dest_revml_repo_server_prompt" class-ids="prompt_class">
    <name>Destination RevML Repo Server</name>    
    <description>

The RevML Repo Server to copy revisions to.

    </description>

    <entry-handler>
      if ( $ui->in_edit_mode ) {
        $default = $ui->dest->repo_server;
        $is_current_value = 1;
      }
    </entry-handler>
    
    <arc from="dest_type_prompt" guard="'revml'" >
      <description>revml</description>
      <handler>
        $ui->new_dest( $answer );
      </handler>
    </arc>

    <arc to="dest_revml_filespec_prompt" guard="&non_empty_re;">
      <handler>
        $ui->dest->repo_server ( $answer )
            unless empty $answer;
      </handler>
    </arc>
 </state>

 <state id="dest_revml_filespec_prompt" class-ids="prompt_class">
   <name>Destination RevML Specification</name>
    <description>

The revml repo spec.  'revml:' will be prefixed to it then
parsed as if it was entered on the vcp command line.

    </description>

    <entry-handler>
      if ( $ui->in_edit_mode ) {
    <!--    $default = join ":",
           map defined $_ ? $_ : "",
           $ui->dest->repo_server,
           $ui->dest->repo_filespec; -->
        $default = $ui->dest->repo_filespec;   
        $is_current_value = 1;
      }
    </entry-handler>

    
    <arc to="wrapup" guard="&non_empty_re;">
      <handler>
        $ui->dest->repo_filespec( $answer );
      </handler>
    </arc>
  </state>

</machine>
# Change User Description Committed
#12 4064 Barrie Slaymaker - RevML is no longer offered in the UI
- Sources and dests are given an id in the UI
- The .vcp file name defaulting now works
#11 3859 Barrie Slaymaker - New UI files
#10 3666 Barrie Slaymaker - vcp can now edit existing .vcp files, for VSS sources and revml dests
#9 3647 Barrie Slaymaker - All UI prompts & descriptions rewritten.
- Minor tweak to VCP::Dest::p4 P4USER defaulting
#8 3644 Barrie Slaymaker - Add Save & Run options to end of UI
#7 3640 Barrie Slaymaker - xmllint no longer require to build UI
- UI now offers multiple choices where appropriate
#6 3502 John Fetkovich removed obsolete commented out (source,dest)->init calls in stml files
#5 3501 John Fetkovich added ui_set_revml_repo_spec, and caller in the stml file
#4 3486 John Fetkovich moved (source or dest)->init calls to bin/vcp
#3 3395 John Fetkovich various ui refinements
#2 3362 John Fetkovich revml source and dest now works through interactive UI
#1 3330 John Fetkovich Added revml source and dest to ui state machines