Server side hooks.
Nicholas Allen
nick.allen at onlinehome.de
Tue Feb 2 17:45:44 GMT 2010
Hi Eric,
You don't have to use bzr-email-notifier from a cron job. There is a
shell script that checks for updates every 10 seconds. This means it
should notify you within a max of 10 seconds of a commit. There is no
need to execute it from a hook. On my system polling every 10 seconds
does not increase CPU usage in a noticable way so you could even lower
the poll interval if you like.
Cheers,
Nick
Eric Berry wrote:
> Hi, Thanks for the pointers.
>
> I looked into both of those, but my issue is that my server
> environment doesn't have cron services. To use these plugins I would
> need to set up some php script to execute these commands, and then set
> up a cron job on another machine to hit the php script.
>
> Is there any way to get these plugins to execute automatically (event
> based) after someone has pushed changes to the server?
>
> How does launchpad do it? Is launchpad using one of these plugins and
> has a cron job running in the background checking for changes?
>
> Thanks,
> Eric
>
> On Tue, Feb 2, 2010 at 1:41 AM, Nicholas Allen
> <nick.allen at onlinehome.de <mailto:nick.allen at onlinehome.de>> wrote:
>
> You can also check out bzr-email-notifier
> https://launchpad.net/bzr-email-notifier.
>
> Nick
>
> Eric Berry wrote:
> > Hello,
> > I've been looking through the documentation on hooks:
> > http://wiki.bazaar.canonical.com/BzrHooks
> > and
> >
> http://doc.bazaar.canonical.com/bzr.dev/en/admin-guide/hooks-plugins.html
> >
> > It doesn't look like there are many "easy" ways to set up email
> > notifications from the server. Is this correct, is the current
> > recommended way to have each developer install and configure the
> > bzr-email plugin?
> >
> > Thanks for any help,
> > Eric
> >
> > --
> > Learn from the past. Live in the present. Plan for the future.
> > 11101000
> > http://www.townsfolkdesigns.com/blogs/elberry
>
>
>
>
> --
> Learn from the past. Live in the present. Plan for the future.
> 11101000
> http://www.townsfolkdesigns.com/blogs/elberry
More information about the bazaar
mailing list