# # # patch "cmd_automate.cc" # from [fab53cb117bb1e6a41072604506a18c7557f8e64] # to [43f845ec3a6bf52d128f668f5b8bc671ee404ad7] # ============================================================ --- cmd_automate.cc fab53cb117bb1e6a41072604506a18c7557f8e64 +++ cmd_automate.cc 43f845ec3a6bf52d128f668f5b8bc671ee404ad7 @@ -124,14 +124,16 @@ static void out_of_band_to_automate_stre // l6:leavese // l7:parents40:0e3171212f34839c2e3263e7282cdeea22fc5378e // -// Output format: :::: +// Output format: :::: // is a decimal number specifying which command // this output is from. It is 0 for the first command, and increases // by one each time. // is 0 for success, 1 for a syntax error, and 2 for any // other error. -// is 'l' if this is the last piece of output for this command, -// and 'm' if there is more output to come. +// is 'l' if this is the last piece of output for this command, +// and 'm' if there is more output to come. Otherwise, 'e', 'p' and 'w' +// notify the caller about errors, informational messages and warnings. +// A special type 't' outputs progress information for long-term actions. // is the number of bytes in the output. // is the output of the command. // Example: @@ -145,12 +147,6 @@ static void out_of_band_to_automate_stre // Error conditions: Errors encountered by the commands run only set // the error code in the output for that command. Malformed input // results in exit with a non-zero return value and an error message. - -// automate_streambuf and automate_ostream are so we can dump output at a -// set length, rather than waiting until we have all of the output. - - - CMD_AUTOMATE_NO_STDIO(stdio, "", N_("Automates several commands in one run"), "", @@ -238,7 +234,7 @@ CMD_AUTOMATE_NO_STDIO(stdio, "", catch (option::option_error & e) { os.set_err(1); - os<