[ANN/RFC] automirror plugin automatically updates remote branch on commit
Neil Martinsen-Burrell
nmb at wartburg.edu
Fri May 30 22:44:29 BST 2008
automirror is a new plugin for Bazaar. It is a post-commit hook that
pushes the new revisions to a remote branch and then updates the remote
working copy. I use it for a branch that versions my personal website
and automatically updating the webserver after each commit, rather than
having to manually update the server.
It is analogous to a very frequently requested Subversion hook
SVN::Notify::Mirror (although not as feature-rich yet). It uses a
similar configuration to bzr_email, setting post_commit_mirror in a
relevant configuration location (I use .bzr/branch/branch.conf) and it
uses the same mechanism as the push-and-update plugin to update the
remote working copy. One way to think about the plugin is as a
configurable automatic push-and-update hook.
automirror also works well with checkouts and a centralized version
control model, where the work is done in a checkout of a centrally
located branch. Simply set post_commit_mirror on the central branch and
when the checkout updates the master branch, it will also update the
mirror branch.
The plugin is available from Launchpad. To install, just
bzr branch lp:bzr-automirror ~/.bazaar/plugins/automirror
To submit bugs or download a tarball: http://launchpad.net/bzr-automirror
The RFC part of the message is that I would like input on what features
people would like to see in this plugin. Multiple mirror branches?
Selective updates based on specific tags? It currently scratches my
itch, but it'd be nice if it scratched yours too.
-Neil
--
"The mathematician's best work is art, a high perfect art, as daring as
the most secret dreams of imagination, clear and limpid. Mathematical
genius and artistic genius touch one another."
-- Gosta Mittag-Leffler
More information about the bazaar
mailing list