[RFC] Make diffstat work with bazaar 1.5
Russ Brown
pickscrape at gmail.com
Wed Jun 4 21:35:32 BST 2008
Aaron Bentley wrote:
> Russ Brown wrote:
>> On the surface it sounds like what is needed is some API that takes two
>> trees and returns some abstract representation of the diff between the
>> two trees. I'm sure it's way more complicated than that though...
>
>> Does such an abstract diff representation exist already, I wonder?
>
> Tree.iter_changes. That will give you the tree-level diff, without
> diffing the contents of the files.
>
> Aaron
I do need information about the file content differences too though. I
just tried this and it didn't tell me anything about the lines that were
different between the two trees.
What I need is something I can grab a count of lines added/removed in
the diff of two trees on a file by file basis.
I'll continue to dig around bzrlib and see if I find anything useful. It
seems to me that what would be required is an object like DiffTree that
provides an abstract representation of the diff, but I can't see
anything like that.
--
Russ.
More information about the bazaar
mailing list