Comment 1 for bug 50329

Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 50329] commit code requires plugins to be loaded

Jelmer Vernooij wrote:
> Public bug reported:
>
> Current bzr.dev will bail out if it's being used from an external
> application that doesn't load bzrs plugins. The commit code will throw a
> confusing exception in the post_commit code if this happens.
>
> We should skip plugins if none are loaded or make sure there's at least
> always an empty list there.

Post_commit only runs whatever you have configured to run. (in
~/.bazaar/bazaar.conf).
If you tell it to run a post-commit action (this doesn't have to be from
a plugin), then it should fail with a reasonable error message saying
that it couldn't perform the action you requested it to do.

It is arguable that we need a way to disable post-commit hooks. But the
real problem is you have configured bzr to do something after a commit,
but your front end doesn't set things up such that you are able to.

John
=:->