Merge lp:~piastucki/bzr-xmloutput/xml-log-fix into lp:bzr-xmloutput
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Guillermo Gonzalez | ||||
Approved revision: | 170 | ||||
Merged at revision: | 172 | ||||
Proposed branch: | lp:~piastucki/bzr-xmloutput/xml-log-fix | ||||
Merge into: | lp:bzr-xmloutput | ||||
Diff against target: |
252 lines (+48/-108) 2 files modified
logxml.py (+26/-92) tests/test_log_xml.py (+22/-16) |
||||
To merge this branch: | bzr merge lp:~piastucki/bzr-xmloutput/xml-log-fix | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Guillermo Gonzalez | Approve | ||
Review via email: mp+154886@code.launchpad.net |
Description of the change
The branch contains the following changes:
1) fixes for failing tests in test_log_xml.py module
2) refactoring of logxml.py module - since we already have a stack of open tags there does not seem to be any reason to keep additional flags/counters and logic to update them. I removed the counters completely and used the stack to properly close open tags.
3) added escaping for tag names
Changes in 2) should fix 517937 - tets case:
1) bzr branch lp:bzr-eclipse (rev 255)
2) cd bzr-eclispe
3) bzr xmllog --limit 230 org.vcs.
-> malformed XML (http://
4) apply fix
5) bzr xmllog --limit 230 org.vcs.
-> correct XML (http://
Thanks for fixing this.
It would be ideal to have a testcase to reproduce the bad xml, but I wasn't able to write one yet (can't reproduce the nested merges in the test to trigger this condition).
Please let me know if can do it, if not I'll try to ask one of the bzr gurus @ #bzr.
Cheers,