Merge lp:~jr/bzr-builddeb/changelog-closes-bugs into lp:bzr-builddeb
Proposed by
Jonathan Riddell
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Jelmer Vernooij | ||||
Approved revision: | 563 | ||||
Merged at revision: | 565 | ||||
Proposed branch: | lp:~jr/bzr-builddeb/changelog-closes-bugs | ||||
Merge into: | lp:bzr-builddeb | ||||
Diff against target: |
124 lines (+49/-3) 4 files modified
__init__.py (+22/-0) debian/changelog (+6/-1) tests/test_commit_message.py (+20/-1) util.py (+1/-1) |
||||
To merge this branch: | bzr merge lp:~jr/bzr-builddeb/changelog-closes-bugs | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jelmer Vernooij | Needs Fixing | ||
Review via email: mp+63248@code.launchpad.net |
Description of the change
Uses the new hook added by https:/
To post a comment you must log in.
We generally try to avoid doing more imports than necessary in the __init__.py of plugins, as everything there gets imported every time bzr is started. "bzrlib.bugtracker" is usually not loaded on startup, so it would make sense to import it only in debian_ changelog_ commit when it is actually used.
commit. builder. _revprops should be public if plugins have to touch it; this should probably be part of adding the set_commit_message hook.
Oh, and the really nitpicky bit.. PEP8 requires two empty lines around top-level things, so you need an extra newline above and an extra newline below debian_ changelog_ commit.
A basic test would be nice, even if just exercises debian_ changelog_ commit directly.