monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] Further update to notification script


From: Nathaniel Smith
Subject: Re: [Monotone-devel] Further update to notification script
Date: Mon, 8 Oct 2007 02:10:28 -0700
User-agent: Mutt/1.5.13 (2006-08-11)

Seems like you should just get commit access to me... Who's in charge
of adding people to the server these days?  Richard?

On Mon, Oct 08, 2007 at 08:33:16AM +0100, Matthew Sackman wrote:
> This morning my mailbox was full of error reports - I wasn't caching the
> current time but looking it up twice and of course it can change. So
> he's a patch to fix that and I've also updated the README file for
> contrib. Could someone commit the patch please?
> 
> Many thanks,
> 
> Matthew
> -- 
> Matthew Sackman
> http://www.wellquite.org/

> #
> # 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

> _______________________________________________
> Monotone-devel mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/monotone-devel

-- Nathaniel

-- 
So let us espouse a less contested notion of truth and falsehood, even
if it is philosophically debatable (if we listen to philosophers, we
must debate everything, and there would be no end to the discussion).
  -- Serendipities, Umberto Eco




reply via email to

[Prev in Thread] Current Thread [Next in Thread]