# # # patch "NEWS" # from [8bfc034c5266e8c70d8e129dfeda1ce418dc6ea4] # to [63d3b12792a507848c7a733534f2278eac5248b7] # # patch "cmd_files.cc" # from [3b7d2bf25e05b220868e16b7c7a05dd4a3d8d204] # to [4476e4cbb2f0c770c4b043a0f507c76d739c6d0a] # # patch "tests/automate_identify/__driver__.lua" # from [41b1aa7f4bc84e92f8b3dddb0b135e3def94aae3] # to [88f42966d628b429faff486d1001cb517476ebef] # ============================================================ --- NEWS 8bfc034c5266e8c70d8e129dfeda1ce418dc6ea4 +++ NEWS 63d3b12792a507848c7a733534f2278eac5248b7 @@ -30,6 +30,10 @@ - It was previously not possible to clone a branch / database anonymously; this has been fixed. + - automate identified was broken in 0.40 when used over stdio, i.e. + the output of the command did not get into the right output + channel; this has been fixed + New features - Add 'automate show_conflicts' command ============================================================ --- cmd_files.cc 3b7d2bf25e05b220868e16b7c7a05dd4a3d8d204 +++ cmd_files.cc 4476e4cbb2f0c770c4b043a0f507c76d739c6d0a @@ -245,7 +245,7 @@ CMD_AUTOMATE(identify, N_("PATH"), id ident; calculate_ident(dat, ident); - cout << ident << '\n'; + output << ident << '\n'; } static void ============================================================ --- tests/automate_identify/__driver__.lua 41b1aa7f4bc84e92f8b3dddb0b135e3def94aae3 +++ tests/automate_identify/__driver__.lua 88f42966d628b429faff486d1001cb517476ebef @@ -18,3 +18,8 @@ check(samelines("stdout", { testfile_id canonicalize("stdout") check(samelines("stdout", { testfile_id })); +-- ensure that it also gets properly encoded via stdio +check(mtn("automate", "stdio"), 0, true, false, "l8:identify8:testfilee") +canonicalize("stdout") +check(samelines("stdout", { "0:0:l:41:" .. testfile_id })) +