[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Monotone-devel] Building a notifier for use on a server. Feature reques
Richard Levitte - VMS Whacker
[Monotone-devel] Building a notifier for use on a server. Feature request.
Tue, 15 Feb 2005 12:25:10 +0100 (CET)
for a while now, I've been thinking about how to build an email logger
with diffs, like there are a few for CVS. I find those loggers quite
practical to follow exactly what's going on in a project. There is
the note_commit hook, sure, but it's quite useless for my purposes. I
basically want to be able to create a mailing list where all commits,
not just my own, are logged.
What I'm thinking of doing (well, actually started already) is a
script that would keep a record of the revision last seen in each
branch, and periodically (say once an hour) check if anything has
changed in the database and create diff logs. Sounds simple enough,
all that's needed is to use 'monotone lca' (which is undocumented,
btw) in case there are several heads in a branch, to make sure the
diff is made correctly.
The only trouble is that I really want to make specific diffs for
every revision. That's quite difficult right now, as there's no easy
way to track the revisions between node A and node B, especially if
development has split in all kinds of ways along the way. So I'm
looking for ideas on how to do that as easily as possible. Ideas I
have now are either to use the output from 'monotone agraph', although
that seems like a PITA, or maybe read the output from 'monotone log',
since it now have ancestry records (which it didn't when I started
thinking about this).
Another solution, if that would be interesting for other purposes as
well, would be to have a monotone command to output all the possible
tracks between two nodes. The output could for example look like this
(taken from the last few revisions of monotone):
Those are the four tracks that lead from
901538d78f25b8bc733e6c6ba9a8d0f9f6187fbe. I've no idea if that means
we would need to borrow code from vcg or dot though...
Well, those are my ideas so far. Comments?
Please consider sponsoring my work on free software.
See http://www.free.lp.se/sponsoring.html for details.
Richard Levitte address@hidden
"When I became a man I put away childish things, including
the fear of childishness and the desire to be very grown up."
-- C.S. Lewis
- [Monotone-devel] Building a notifier for use on a server. Feature request.,
Richard Levitte - VMS Whacker <=