[darcs-users] Log messages by e-mail
n8gray at caltech.edu
Thu Jul 20 23:44:48 UTC 2006
Jason Dagit wrote:
> Sorry, forgot to CC you in the reply...
> ---------- Forwarded message ----------
> From: Jason Dagit <dagit at codersbase.com>
> Date: Jul 20, 2006 4:12 PM
> Subject: Re: [darcs-users] Log messages by e-mail
> To: darcs-users at darcs.net
> On 7/20/06, Nathaniel Gray <n8gray at caltech.edu> wrote:
>> I'm trying to set up a central-ish repository and I'd like to have it
>> send a message to a mailing list for each apply, containing info about
>> each patch applied. I tried setting
>> apply posthook send-log-message
>> apply run-posthook
>> in the _darcs/prefs/defaults file but that sends a message once per
>> *apply*, without giving any info about how many patches were applied!
>> Is there some trick that can make this work sensibly or do I have to
>> resort to some kind of horrific send-log-message that tries to compute
>> what's changed by itself?
> You're right. It's designed to send one email per apply not per patch.
> You have basically three options here 1) write the horrific script
> yourself 2) extend darcs 3) wait for someone else to do #1 or #2. I
> would prefer to see #2 happen but it's unclear to me what the
> interface should be like and I doubt I'll have time to do it in the
> near future. Do you have some ideas on how you'd like the interface
> to work? Would passing the number of patches in via an environment
> variable be useful to you?
I think that would do it. That would allow me to do 'darcs changes
--last $N_PATCHES' in the posthook to generate a nice log message.
> You're not the first person to ask for this so perhaps you could find
> someone else to help with this? I will say that I've used it to send
> out emails per apply and it's worked out great. I really didn't need
> one email per patch. I just included the output of darcs changes with
> the email and then people had what they needed; notification of update
> plus a 'change log' of sorts.
So are you saying you sent the full output of 'darcs changes' with every
e-mail? doesn't that get pretty long?
> You can also use the xsl file from
> darcs-cgi (with minor modifications) combined with the xml output of
> darcs changes to get an rss feed. If that interests you can I help
> you piece it together.
I am interested in having an RSS feed. I've even thought that it might
be preferable to a mailing list...
> Wish I had a more positive answer...
Me too, but thanks anyway!
>>>-- Nathaniel Gray -- Caltech Computer Science ------>
>>>-- Mojave Project -- http://mojave.cs.caltech.edu -->
More information about the darcs-users