[rfc] [patch] speeding up bzr log with a tree delta iterator
Denys Duchier
duchier at ps.uni-sb.de
Thu Jan 19 00:43:36 GMT 2006
Denys Duchier <duchier at ps.uni-sb.de> writes:
> John A Meinel <john at arbash-meinel.com> writes:
>
>> What about changing the interface to that?
>>
>> compare_trees_iter(branch, revisions)
>
> as such that doesn't work because compare_trees(old_tree, new_tree) isn't
> commutative. we could pass a list of pairs (old_revid, new_revid) which also
> would have the advantage of saying explicitely what needs to be done at the
> boundaries (I mean at each end of the given list).
How about:
Branch.revision_iter(rev1,rev2,reverse=False,delta=False)
returning an iterator where each next() returns:
revno, revid, delta_or_None
this way we cover iteration both with and without computing deltas and
everything is always in sync.
--Denys
More information about the bazaar
mailing list