clocc hg hooks

Raymond Toy <[email protected]> Tue, 08 Mar 2011 23:24:45 -0500
Newsgroups gmane.lisp.clocc.devel
Message-ID <[email protected]>
I think it would be nice to have commit messages sent out with hg
pushes.  Perhaps we can use the changegroup hook given in
<http://mercurial.selenic.com/wiki/Hook#The_changegroup_hook>.  These
seem relatively simple to setup and we can just send all mail to the
clocc-cvs list.  This just gives the commit messages.

Or perhaps the NotifyExtension
<http://mercurial.selenic.com/wiki/NotifyExtension>, which will send out
diffs.  (I kind of like diffs, but perhaps people consider that to be
too cluttered for commit messages.)

In addition, I'd like the keyword extension enabled.  See
<http://mercurial.selenic.com/wiki/KeywordExtension>, which is
distributed with hg.  I use the CVS $Id$ keyword in f2cl in the
generated files so the user knows exactly what version of each f2cl file
was used to generate the translation.  I don't know if anyone else is
using CVS keywords in this way, but we can limit the keyword expansions
to just *.l files, which, I think are only in f2cl.

Ray


------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d