# # old_revision [4c7504ea753f15bde2abc80e0e74dfc0951735e4] # # patch "contrib/README" # from [a5a965b9b3fed717621b8c216ec226756a95e568] # to [9c675c56a2e014932a16079f1a580b427c2cff15] # # patch "contrib/monotone-mail-notify-standalone.lua" # from [b451b8b6da1a0f92dcb9d372fe1935972f9eafaa] # to [f7912c79e41bff48c12b54e25bad92a03d5bc031] # ============================================================ --- contrib/README a5a965b9b3fed717621b8c216ec226756a95e568 +++ contrib/README 9c675c56a2e014932a16079f1a580b427c2cff15 @@ -64,7 +64,10 @@ See individual files for licenses. for use. -- monotone-mail-notify-standalone.lua: a mail notification script which - runs without any other external dependencies than /usr/bin/mail and offers an individual per-branch recipient configuration with a syntax - similar to the one found in ~/.monotone/read-permissions + similar to the one found in ~/.monotone/read-permissions. + It writes out details of each revision received to files which are then + picked up by the monotone-mail-notify-standalone.sh script which requires + shell, source-highlight and mime-construct to build nicely structured + emails with summaries of the revision and its diffs. ============================================================ --- contrib/monotone-mail-notify-standalone.lua b451b8b6da1a0f92dcb9d372fe1935972f9eafaa +++ contrib/monotone-mail-notify-standalone.lua f7912c79e41bff48c12b54e25bad92a03d5bc031 @@ -133,9 +133,11 @@ do if j < # (rev_data["certs"]["author"]) then reply_to = reply_to .. ", " end end - local outputFileRev = io.open(_base .. rev_data["revision"] .. os.time() .. ".rev.txt", "w+") - local outputFileHdr = io.open(_base .. rev_data["revision"] .. os.time() .. ".hdr.txt", "w+") + local now = os.time() + local outputFileRev = io.open(_base .. rev_data["revision"] .. now .. ".rev.txt", "w+") + local outputFileHdr = io.open(_base .. rev_data["revision"] .. now .. ".hdr.txt", "w+") + local to = "" for j,addr in pairs(rev_data["recipients"]) do to = to .. addr