commit code requires plugins to be loaded
Bug #50329 reported by
Jelmer Vernooij
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Medium
|
Robert Collins |
Bug Description
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.
To post a comment you must log in.
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. conf).
~/.bazaar/
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
=:->