[darcs-devel] Re: [darcs-users] Log messages by e-mail

Nathaniel Gray n8gray at caltech.edu
Mon Jul 24 22:18:23 PDT 2006


Jason Dagit wrote:
> On 7/20/06, Nathaniel Gray <n8gray at caltech.edu> wrote:
> 
>> 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.
> 
> I don't think this would be hard to implement (famous last words...)
> and could possibly serve as good introduction to haskell/darcs.  Are
> you interested in trying to implement this?  Maybe I could help
> advise...

Ok, now we're on darcs-devel so we can talk code.  I suppose a sensible 
design would be to have each command return a list of string pairs 
representing additions to the posthook environment.  For the moment, 
they would all return [] except for apply, which would return something 
like [("darcs_patch_count", "7")].  Let me know if there's another 
approach you'd prefer.

I see run_posthook in Test.lhs, which looks like the place to begin, and 
there's also consider_running in DarcsCommands.lhs.  Hopefully the type 
checker will make it clear how to proceed from that point.  Guess it's 
time to deal with the frustration of being an "expert beginner" all over 
again...

Any hints are appreciated, but please CC me.

Cheers,
-n8

-- 
 >>>-- Nathaniel Gray -- Caltech Computer Science ------>
 >>>-- Mojave Project -- http://mojave.cs.caltech.edu -->




More information about the darcs-devel mailing list