Comment 3 for bug 322327

Revision history for this message
Thierry Carrez (ttx) wrote :

I managed to build a PoC integrated diff using two hooks in bzr:

* First one (called showdiff_modifychanges in the patch) allows to modify the changes iterator just before it's used in diff.py:_show_diff, so that you can add the files that just have a metadata difference

* Second one (called showdiff_extrachanges in the patch), also in diff.py:_show_diff, allows for each file in the iterator to append to the properties changetext (prop_str) a string describing metadata change, if any

See patch for details. I'd welcome review from bzr developers to confirm it is the best place to hook for the desired result.