Merge lp:~vila/bzr/552922-plugins-at into lp:bzr
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Ian Clatworthy on 2010-04-06 | ||||
| Approved revision: | 5108 | ||||
| Merged at revision: | 5134 | ||||
| Proposed branch: | lp:~vila/bzr/552922-plugins-at | ||||
| Merge into: | lp:bzr | ||||
| Diff against target: |
181 lines (+68/-35) 3 files modified
NEWS (+4/-0) bzrlib/plugin.py (+27/-25) bzrlib/tests/test_plugins.py (+37/-10) |
||||
| To merge this branch: | bzr merge lp:~vila/bzr/552922-plugins-at | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Ian Clatworthy | Approve on 2010-04-06 | ||
| Gordon Tyler | 2010-04-02 | Approve on 2010-04-03 | |
|
Review via email:
|
|||
Description of the Change
Since https:/
was broken, I'm proposing against bzr.dev to get a reasonable diff,
but the intent is still to land in 2.2 when it will be updated.
This patch fixes the BZR_PLUGINS_AT handling to not depend on os.listdir() order.
The automated tests couldn't catch the problem and I was lucky enough to not encounter
it before (and neither was Gary).
Unlike _find_module_
names from the loadable files, BZR_PLUGINS_AT *knows* the plugin names and can (and should)
try some file names explicitly.
Tests added.
| Ian Clatworthy (ian-clatworthy) wrote : | # |
Some requested tweaks ...
> name = fullname[
This variable is never used. Perhaps you wanted to use it in the ImportError? Otherwise, just delete this line please.
> def test_loading_
Given this test doesn't actual load from __init__ but fails because that file is not there (after an explicit rename), I'd prefer a better test name, e.g. test_loading_
- 5109. By Vincent Ladeuil on 2010-04-06
-
Fixed as per Ian's review.

This fixes the problem I was having in bug 552922.