Merge lp:~xnox/bzr/bug.569934 into lp:bzr
Proposed by
Dimitri John Ledkov
Status: | Work in progress | ||||
---|---|---|---|---|---|
Proposed branch: | lp:~xnox/bzr/bug.569934 | ||||
Merge into: | lp:bzr | ||||
Diff against target: |
95 lines (+20/-38) 1 file modified
bzrlib/version_info_formats/format_python.py (+20/-38) |
||||
To merge this branch: | bzr merge lp:~xnox/bzr/bug.569934 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Vincent Ladeuil | Needs Fixing | ||
Review via email: mp+24093@code.launchpad.net |
Description of the change
version-info rio parser has a hook. Plugins such as bzr-svn hook into that to add additional information about revisions. python parser doesn't have a hook, and you shouldn't expect plugin writters to hook into every single parsers. This branch changes python parser to use rio parser to get revision information including stuff added by hooks.
For example see bug #569934.
To post a comment you must log in.
Unmerged revisions
- 5185. By Dimitri John Ledkov
-
version_info python formater now uses RioFormatter to get info from additional hooks, e.g. svn-revno
Design-wise, the approach sounds fine, yet, I don't understand why you delete the 'revisions' and 'file-revisions' only to let the existing code re-create them (in much the same way that the base class does).
Two tests are failing with your patch, you can avoid running the whole test suite
by using:
'./bzr selftest -s bt.test_version'
Note that since this formatter is for python we may want to preserve revno being an int (so you may have to convert it from the rio string).
Finally, we need you sign the contributor agreement to accept your patch, see http:// www.canonical. com/contributor s, thanks for giving it a look.