Merge lp:~gagern/bzr/bug513322-authors into lp:bzr
Proposed by
Martin von Gagern
Status: | Merged |
---|---|
Approved by: | Vincent Ladeuil |
Approved revision: | no longer in the source branch. |
Merged at revision: | 5211 |
Proposed branch: | lp:~gagern/bzr/bug513322-authors |
Merge into: | lp:bzr |
Diff against target: |
333 lines (+228/-9) 4 files modified
NEWS (+4/-0) bzrlib/builtins.py (+9/-2) bzrlib/log.py (+70/-7) bzrlib/tests/test_log.py (+145/-0) |
To merge this branch: | bzr merge lp:~gagern/bzr/bug513322-authors |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gary van der Merwe | Approve | ||
Robert Collins (community) | Abstain | ||
Vincent Ladeuil | Approve | ||
Review via email: mp+23122@code.launchpad.net |
This proposal supersedes a proposal from 2010-04-01.
Description of the change
This patch introduces a --authors switch to bzr log, allowing users to override the choice of authors for all built-in formats. It comes with a NEWS item and several test cases.
I'm not perfectly happy with the naming, so if you prefer different names for some method or attribute, let me know. I also haven't included a blackbox test ensuring that the --authors command line switch actually gets passed to the log formatter. Do you consider this necessary?
To post a comment you must log in.
The manual parsing and the structure of the if block says to me that this would be better handled by a registry of author handlers.