# # patch "ChangeLog" # from [777ca01f03e75cdb7cd33e67cb3b5453df7046bb] # to [12a609f7eb7b260bf078fa0cd77e06534e63dc51] # # patch "lua.cc" # from [289aa9474f82e484b42a4db7f6280c4c6d33c088] # to [fcdcae0e83a277631f00f445a292b970ce6e76c5] # # patch "std_hooks.lua" # from [c8e8b4d4e236651d18100525e5d3efe69f090af0] # to [6531b009dc93c30a5e470683a2d11ed2f3cfc52b] # ======================================================================== --- ChangeLog 777ca01f03e75cdb7cd33e67cb3b5453df7046bb +++ ChangeLog 12a609f7eb7b260bf078fa0cd77e06534e63dc51 @@ -1,3 +1,9 @@ +2005-08-31 Richard Levitte + + * lua.cc, std_hooks.lua: Rename monotone_guess_binary_filename_for_lua + and guess_binary_filename to monotone_guess_binary_file_contents_for_lua + and guess_binary_file_contents. + 2005-08-31 Nathaniel Smith * file_io.cc (set_char_is_binary, guess_binary): static_cast chars ======================================================================== --- lua.cc 289aa9474f82e484b42a4db7f6280c4c6d33c088 +++ lua.cc fcdcae0e83a277631f00f445a292b970ce6e76c5 @@ -520,7 +520,7 @@ } static int - monotone_guess_binary_filename_for_lua(lua_State *L) + monotone_guess_binary_file_contents_for_lua(lua_State *L) { const char *path = lua_tostring(L, -1); N(path, F("guess_binary called with an invalid parameter")); @@ -622,7 +622,7 @@ lua_register(st, "wait", monotone_wait_for_lua); lua_register(st, "kill", monotone_kill_for_lua); lua_register(st, "sleep", monotone_sleep_for_lua); - lua_register(st, "guess_binary_filename", monotone_guess_binary_filename_for_lua); + lua_register(st, "guess_binary_file_contents", monotone_guess_binary_file_contents_for_lua); lua_register(st, "include", monotone_include_for_lua); lua_register(st, "includedir", monotone_includedir_for_lua); } ======================================================================== --- std_hooks.lua c8e8b4d4e236651d18100525e5d3efe69f090af0 +++ std_hooks.lua 6531b009dc93c30a5e470683a2d11ed2f3cfc52b @@ -140,7 +140,7 @@ if (string.find(lowname, "%.sql$")) then return false end -- unknown - read file and use the guess-binary -- monotone built-in function - return guess_binary_filename(name) + return guess_binary_file_contents(name) end function edit_comment(basetext, user_log_message)