<!DOCTYPE author [ <!ENTITY yes_re "qr/\Ay(es)?\z/i" > <!ENTITY no_re "qr/\Ano?\z/i" > <!ENTITY yes_no_re "qr/\A(y(es)?|no?)\z/i" > ]> <machine id="VCP::Source::p4"> <!-- ================ TRANSITIONS =================== --> <state id="source_p4_run_p4d_prompt" class-ids="prompt_class"> <name>Launch a private p4d in a local directory</name> <description> If you are working with an offline repository in a local directory, vcp can launch a p4d in that directory on a random hi-numbered TCP port for you. </description> <arc from="source_prompt" guard="'p4'"> <description>p4</description> <handler> require VCP::Source::p4; $ui->{Source} = VCP::Source::p4->new; </handler> </arc> <arc to="source_p4_p4d_dir_prompt" guard="&yes_re;"> <description>yes</description> </arc> <arc to="source_p4_host_prompt" guard="&no_re;"> <description>no</description> </arc> </state> <state id="source_p4_p4d_dir_prompt" class-ids="prompt_class"> <name>Directory to run p4d in</name> <description> Enter the directory to launch the p4d in. VCP will then check that this is a valid directory. </description> <arc to="source_p4_user_prompt" guard="sub { -d $_ ? 1 : die qw{'$_' is not a valid directory} }" /> </state> <state id="source_p4_host_prompt" class-ids="prompt_class"> <name>P4 Host name, including port</name> <description> Enter the name and port of the p4d to read from, separated by a colon. Leave empty to use the p4's default of the P4HOST environment variable if set or "perforce:1666" if not. </description> <arc to="source_p4_user_prompt"> </arc> </state> <state id="source_p4_user_prompt" class-ids="prompt_class"> <name>P4 user id</name> <description> Enter the user_id (P4USER) value needed to access the server. Leave empty to the P4USER environemnt variable, if present; or the login user if not. </description> <arc to="source_p4_password_prompt"> </arc> </state> <state id="source_p4_password_prompt" class-ids="prompt_class"> <name>Password</name> <description> If a password (P4PASSWD) is needed to access the server, enter it here. WARNING: password will be echoed in plain text to the terminal. </description> <arc to="source_p4_filespec_prompt"> </arc> </state> <state id="source_p4_filespec_prompt" class-ids="prompt_class"> <name>Files to copy</name> <description> If you want to copy a portion of the source repository, enter a p4 filespec starting with the depot name. Do not enter any revision or change number information. </description> <arc to="dest_prompt"> <description>//...</description> </arc> </state> <!-- leave bootstrap off the GUI for now <state id="source_p4_bootstrap_prompt" class-ids="prompt_class"> <name>Files to export in bootstrap mode</name> <description> Forces bootstrap mode for an entire export ("-b ...") or for certain files. Filenames may contain wildcards, see the Regexp::Shellish manpage for details on what wildcards are accepted. </description> <arc to="continue" guard="validate Regexp::Shellish wildcard"/> </state> --> <!-- leave continue out of the GUI for now <state id="source_p4_continue_prompt" class-ids="prompt_class"> <name>Continue</name> <description> Starts this transfer where the previous one (to the same destination) left off. This uses the destination's state database to detect what was transferred last time and to begin this transfer where the previous one left off. </description> <arc to="follow_branch_into" guard="&yes_no_re;"/> </state> --> <!-- leave follow branch into out of the GUI for now (because rev-root not in gui) <state id="source_p4_follow_branch_into_prompt" class-ids="prompt_class"> <name>Follow 'branch into' flag</name> <description> Causes VCP to notice "branch into" messages in the output of p4's filelog command and. If the file that's the target of the p4 integrate (branch) command is revision number #1, adds the target to the list of exported files. This usually needs a rev-root option to set the rev root to be high enough in the directory tree to include all branches (it's an error to export a file that is not under the rev root). </description> <arc to="dest_prompt" guard="&yes_no_re;"/> </state> --> </machine>
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#37 | 5397 | barrie_slaymaker | - Update P4PASSWD prompts to allow for not setting P4PASSWD | ||
#36 | 4581 | barrie_slaymaker | - user prompts have been improved, but not tested | ||
#35 | 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 |
||
#34 | 3859 | barrie_slaymaker | - New UI files | ||
#33 | 3669 | barrie_slaymaker | - VCP-Source-*.stml now use new_source | ||
#32 | 3647 | barrie_slaymaker |
- All UI prompts & descriptions rewritten. - Minor tweak to VCP::Dest::p4 P4USER defaulting |
||
#31 | 3640 | barrie_slaymaker |
- xmllint no longer require to build UI - UI now offers multiple choices where appropriate |
||
#30 | 3547 | john_fetkovich | Added defaults to yes/no questions (no in all cases) | ||
#29 | 3538 | john_fetkovich | bug fix P4PASSWD defaulting | ||
#28 | 3518 | john_fetkovich | more interactive ui improvements | ||
#27 | 3515 | john_fetkovich | added P4HOST default | ||
#26 | 3514 | john_fetkovich | p4 password defaulting | ||
#25 | 3513 | john_fetkovich | defaulting of p4 user variable | ||
#24 | 3512 | john_fetkovich | enhanced ui checks on repo_server | ||
#23 | 3502 | john_fetkovich | removed obsolete commented out (source,dest)->init calls in stml files | ||
#22 | 3486 | john_fetkovich | moved (source or dest)->init calls to bin/vcp | ||
#21 | 3403 | john_fetkovich |
options given on all multiple choice prompts, and most free-form prompts where it makes sense |
||
#20 | 3398 | john_fetkovich | prompt language improvement | ||
#19 | 3395 | john_fetkovich | various ui refinements | ||
#18 | 3383 | john_fetkovich |
removed setting of repo_id, it's now done in 'sub init' in the sources and dests |
||
#17 | 3375 | john_fetkovich | more ui changes | ||
#16 | 3306 | barrie_slaymaker | Add StateML namespace support | ||
#15 | 3305 | john_fetkovich |
added calls to set fields in p4 source and dest state machines, and then call to init |
||
#14 | 3289 | john_fetkovich | |||
#13 | 3260 | john_fetkovich | Improve some help texts | ||
#12 | 3255 | barrie_slaymaker |
Add in support for <arc> <handler>s. Requires latest StateML. See VCP-Source-p4.stml for an example. Calls VCP::Source::p4 in an unsupported way resulting in death. |
||
#11 | 3254 | barrie_slaymaker | Redo machine naminf convention. | ||
#10 | 3249 | john_fetkovich | small fix | ||
#9 | 3248 | john_fetkovich |
Created VCP-Source-cvs.stml. Small changes VCP-Source-p4.stml. |
||
#8 | 3240 | barrie_slaymaker | UI definition cleanup | ||
#7 | 3239 | barrie_slaymaker | Fix VCP-Source-p4 stml buglets. | ||
#6 | 3238 | john_fetkovich | small changes | ||
#5 | 3237 | barrie_slaymaker | More work on the UI StateML conventions | ||
#4 | 3236 | john_fetkovich | added more states, but not complete | ||
#3 | 3234 | barrie_slaymaker | More updates, passes make ui now. | ||
#2 | 3231 | barrie_slaymaker | work on STML->source code conventions | ||
#1 | 3229 | barrie_slaymaker | Add more .stml files |