# # # patch "NEWS" # from [91d8d32a24a5e4281224dcf726c4679436906221] # to [7bb460a8e61c1ecd7d75d4fad815265aee823a57] # # patch "cmd_automate.cc" # from [5fd48fa402aad2a8b4f24eec735eddaad7e17114] # to [dfc29e4dbc341babe7dac0831c70e38ce8e15e81] # ============================================================ --- NEWS 91d8d32a24a5e4281224dcf726c4679436906221 +++ NEWS 7bb460a8e61c1ecd7d75d4fad815265aee823a57 @@ -31,6 +31,9 @@ - 'db info --full' no longer crashes when executed on a database with only one revision. + - The mtn_automate Lua function which can be used for custom + commands now properly handles binary data. + Internal ============================================================ --- cmd_automate.cc 5fd48fa402aad2a8b4f24eec735eddaad7e17114 +++ cmd_automate.cc dfc29e4dbc341babe7dac0831c70e38ce8e15e81 @@ -379,7 +379,7 @@ LUAEXT(mtn_automate, ) os.flush(); lua_pushboolean(LS, result); - lua_pushstring(LS, output.str().c_str()); + lua_pushlstring(LS, output.str().data(), output.str().size()); return 2; }