[rfc] Trigger Plugin
Nathaniel McCallum
npmccallum at gentoo.org
Fri Jan 13 03:45:08 GMT 2006
I'd love some comments on this trigger plugin that I wrote. Basically
the syntax is this:
bzr trigger <command>
It will run <command> for every revision in the branch. Subsequent
calls to bzr trigger with the same command specified will only run on
revisions since the last call. So for instance, if you were to put the
following command into a cron job, it would email you the log for every
commit:
bzr trigger bzr log %branch% -r %revno% | sendmail foo at bar.com
Another example would be a build daemon. The following command would
build only the latest version (not every subsequent version):
bzr trigger --latest "cd %branch% && ./configure && make"
You can also specify the path to the desired branch with the '--root'
option.
The plugin is attached, thanks for the input!
Nathaniel
PS - Is a feature like this desired in bzr proper? If so, I'll gladly
merge it into builtins.py.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bzrtrigger.py
Type: text/x-python
Size: 3600 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060112/9d68e9c6/attachment.py
More information about the bazaar
mailing list