# # old_revision [133d7c3ff21229143d27ccd7cca5d64d2b117335] # # patch "work.cc" # from [e0fe90634bfe1aa58632bfbb9158416a793b5e08] # to [06b487dfeed9d4b142dba5318bcfcb6a13c925e5] # ============================================================ --- work.cc e0fe90634bfe1aa58632bfbb9158416a793b5e08 +++ work.cc 06b487dfeed9d4b142dba5318bcfcb6a13c925e5 @@ -49,6 +49,7 @@ static char const revision_file_name[] = static char const options_file_name[] = "options"; static char const user_log_file_name[] = "log"; static char const revision_file_name[] = "revision"; +static char const message_file_name[] = ".mtn-message"; static void get_revision_path(bookkeeping_path & m_path) @@ -251,6 +252,28 @@ workspace::has_contents_user_log() return user_log_message().length() > 0; } +// .mtn-message template file +void +workspace::get_message_file_path(file_path & msgf_path) +{ + msgf_path = file_path_internal(message_file_name); + L(FL("mtn message file path is %s") % msgf_path); +} + +void +workspace::read_message_file(utf8 & dat) +{ + file_path msgf_path; + get_message_file_path(msgf_path); + + if (file_exists(msgf_path)) + { + data tmp; + read_data(msgf_path, tmp); + system_to_utf8(external(tmp()), dat); + } +} + // _MTN/options handling. void