monotone-devel
[Top][All Lists]
Advanced

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

[Monotone-devel] Mailing notifications from one server


From: Richard Levitte - VMS Whacker
Subject: [Monotone-devel] Mailing notifications from one server
Date: Thu, 05 Aug 2004 00:35:21 +0200 (CEST)

I've been thinking about setting things up so I get an email whenever
a commit comes in.  It didn't take me long at all to realise that the
hook note_commit will basically only work on my local database and
nowhere else, and to top it off, it will only be called for my own
commits, not those coming from others (i.e. whenever I pull from some
other server).

Since I want to do this on my server database, to which other data is
pushed, note_commit will of course never be called, so trying to hack
that function seems to be futile...

This is a bit annoying, at least for someone like me, who've used mail
notification from all my CVS repositories and rely on them.

Currently, the only thing I can think of is to have a script that runs
regularly (by ways of cron), figures out what branches there are
(monotone --db=... list branches), then figure out the heads for each
branch (monotone --db=... -branch=... heads).  For each such head, we
find the ids of all manifests by listing certificates for ids we know
and following ancestor links backward until a cert named 'x-logged' is
found.  Using all the collected ids, send diffs using the collected
ids, and add a cert for each new id.

Does this sound like a good approach?  I could probably create a lus
script that helps...

Cheers,
Richard

-----
Please consider sponsoring my work on free software.
See http://www.free.lp.se/sponsoring.html for details.

-- 
Richard Levitte                         address@hidden
                                        http://richard.levitte.org/




reply via email to

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