Post Commit Update
John Arbash Meinel
john at arbash-meinel.com
Tue Sep 28 14:58:54 BST 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 9/28/2010 7:07 AM, Marius Boitor wrote:
> Hi,
>
> I need to hook a post commit update command to the main repo.
> Any advice on what's the best way of doing this and maybe how to follow
> that best way?
>
> The server is on the intranet.
>
> Thanks,
> Marius
>
> --
> With respect,
> Marius Boitor
If people are accessing the repository via a smart protocol (bzr+ssh,
bzr:// or bzr+http://) then you can write a plugin that installs a
post_branch_tip_changed hook, and does whatever you want at that time.
If people are accessing the repository directly (shared filesystem,
sftp, nfs, ftp, etc) then your best bet is to look at the asynchronous /
cron style plugins that poll your repository for changes. I don't
remember the names offhand.
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkyh9J4ACgkQJdeBCYSNAAN/mwCgvZPhWx1y0juBrBXw8/K5B/sm
8RgAoJmHrnS2TLC549jv3i1NcfNx46qv
=7Kos
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list