Server side hooks.

Eric Berry elberry at gmail.com
Tue Feb 2 19:09:53 GMT 2010


So does this mean it won't work with a server repo set up using --no-trees?

On Tue, Feb 2, 2010 at 11:02 AM, Nicholas Allen <nick.allen at onlinehome.de>wrote:

> bzr-email-notifier just scans a directory full of Bazaar branches and
> sends any emails for new revisions found in them. The branches have to
> be local on the server that bzr-email-notifier is running. However, you
> can always branch from a remote location if you want to monitor a remote
> branch. If the pull option is turned on in the config file then
> bzr-email-notifier will first pull from the parent branch for each branch.
>
> Nick
>
> Eric Berry wrote:
> > Hi Robert, and Nick.
> >    Thank you both for the replies. It sounds like this is what I want,
> > but could you please send me some more information on how to do this
> > exactly?
> >
> > Robert, from my understanding I would need to install the email plugin
> > on the server into the $HOME/.bazaar/plugins directory. However, I am
> > not the only user who makes use of the repository, and each of us has
> > a different user, so I would need to install this into each user's
> > directory correct?
> >
> > It's a managed hosting environment and I can't install it into the
> > bazaar installation dir.
> >
> > Nick, can you explain a little bit about how the email-notifier works.
> > I was looking through the example.conf file and it looks like it
> > creates a local working copy for the branches it's watching? Is this
> > correct?
> >
> > On Tue, Feb 2, 2010 at 9:45 AM, Nicholas Allen
> > <nick.allen at onlinehome.de <mailto:nick.allen at onlinehome.de>> wrote:
> >
> >     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>
> >     <mailto: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
> >
> >
> >
> >
> > --
> > 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/bazaar/attachments/20100202/a1ae1d78/attachment-0001.htm 


More information about the bazaar mailing list